mirror of
https://github.com/servo/servo.git
synced 2025-08-03 12:40:06 +01:00
pass request value instead of constant
This commit is contained in:
parent
c6494db520
commit
1db1a7671e
1 changed files with 1 additions and 1 deletions
|
@ -1106,7 +1106,7 @@ fn cors_preflight_fetch(request: Rc<Request>, cache: &mut CORSCache,
|
|||
context: &FetchContext) -> Response {
|
||||
// Step 1
|
||||
let mut preflight = Request::new(request.current_url(), Some(request.origin.borrow().clone()),
|
||||
false, request.pipeline_id.get());
|
||||
request.is_service_worker_global_scope, request.pipeline_id.get());
|
||||
*preflight.method.borrow_mut() = Method::Options;
|
||||
preflight.initiator = request.initiator.clone();
|
||||
preflight.type_ = request.type_.clone();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue