mirror of
https://github.com/servo/servo.git
synced 2025-08-06 06:00:15 +01:00
Auto merge of #9017 - jinwooahn:spec, r=jdm
Fix a logical operator to match the spec (#9016) Fix issue #9016 <!-- Reviewable:start --> [<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/9017) <!-- Reviewable:end -->
This commit is contained in:
commit
6764cf0ee9
1 changed files with 1 additions and 1 deletions
|
@ -235,7 +235,7 @@ impl CORSRequest {
|
|||
_ => return error,
|
||||
};
|
||||
// Substep 4
|
||||
if methods.is_empty() || preflight.mode == RequestMode::ForcedPreflight {
|
||||
if methods.is_empty() && preflight.mode == RequestMode::ForcedPreflight {
|
||||
methods = &methods_substep4;
|
||||
}
|
||||
// Substep 5
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue