mirror of
https://github.com/servo/servo.git
synced 2025-08-06 22:15:33 +01:00
Auto merge of #13069 - hsinewu:#13025, r=jdm
pass request value instead of constant <!-- Please describe your changes on the following line: --> --- <!-- Thank you for contributing to Servo! Please replace each `[ ]` by `[X]` when the step is complete, and replace `__` with appropriate data: --> - [X] `./mach build -d` does not report any errors - [X] `./mach test-tidy` does not report any errors - [X] These changes fix #13025 <!-- Either: --> - [X] These changes do not require tests because stated in the issue <!-- Pull requests that do not address these steps are welcome, but they will require additional verification as part of the review process. --> <!-- Reviewable:start --> --- This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/13069) <!-- Reviewable:end -->
This commit is contained in:
commit
b399fcb54b
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