mirror of
https://github.com/servo/servo.git
synced 2025-08-03 20:50:07 +01:00
Fix a logical operator to match the spec
This commit is contained in:
parent
22e1ccae37
commit
2eac20861d
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