mirror of
https://github.com/servo/servo.git
synced 2025-08-04 05:00:08 +01:00
Merge pull request #2926 from servo/unnecessary_parens
Fix an unnecessary_parens warning.
This commit is contained in:
commit
ce84adaa05
1 changed files with 1 additions and 1 deletions
|
@ -63,7 +63,7 @@ impl CORSRequest {
|
|||
// we can fetch a data URL normally. about:blank can also be fetched by XHR
|
||||
"http" | "https" => {
|
||||
let mut req = CORSRequest::new(referer, destination, mode, method, headers);
|
||||
req.preflight_flag = (!is_simple_method(&req.method) || mode == ForcedPreflightMode);
|
||||
req.preflight_flag = !is_simple_method(&req.method) || mode == ForcedPreflightMode;
|
||||
if req.headers.iter().all(|h| is_simple_header(&h)) {
|
||||
req.preflight_flag = true;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue