Skip to content

Commit

Permalink
Fix a logical operator to match the spec
Browse files Browse the repository at this point in the history
  • Loading branch information
Jinwoo Ahn committed Dec 18, 2015
1 parent 22e1cca commit 2eac208
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion components/script/cors.rs
Original file line number Diff line number Diff line change
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 2eac208

Please sign in to comment.