aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/components/script/cors.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/components/script/cors.rs b/src/components/script/cors.rs
index df168084376..12c87e7b364 100644
--- a/src/components/script/cors.rs
+++ b/src/components/script/cors.rs
@@ -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;
}