Fix a logical operator to match the spec

This commit is contained in:
Jinwoo Ahn 2015-12-18 21:25:04 +09:00
parent 22e1ccae37
commit 2eac20861d

View file

@ -235,7 +235,7 @@ impl CORSRequest {
_ => return error, _ => return error,
}; };
// Substep 4 // Substep 4
if methods.is_empty() || preflight.mode == RequestMode::ForcedPreflight { if methods.is_empty() && preflight.mode == RequestMode::ForcedPreflight {
methods = &methods_substep4; methods = &methods_substep4;
} }
// Substep 5 // Substep 5