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:
bors-servo 2015-12-18 20:06:40 +05:30
commit 6764cf0ee9

View file

@ -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