mirror of
https://github.com/servo/servo.git
synced 2025-08-03 04:30:10 +01:00
parent
f5e97ef1b5
commit
9c11781880
20 changed files with 25 additions and 29 deletions
|
@ -232,7 +232,7 @@ impl CORSRequest {
|
|||
_ => return error
|
||||
};
|
||||
// Substep 4
|
||||
if methods.len() == 0 || 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