Skip to content

Commit

Permalink
Auto merge of #9017 - jinwooahn:spec, r=jdm
Browse files Browse the repository at this point in the history
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 -->
  • Loading branch information
bors-servo committed Dec 18, 2015
2 parents 22e1cca + 2eac208 commit 6764cf0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion components/script/cors.rs
Expand Up @@ -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
Expand Down

0 comments on commit 6764cf0

Please sign in to comment.