From 2eac20861d32a5016e79e74cc80a4676eb29bc8b Mon Sep 17 00:00:00 2001 From: Jinwoo Ahn Date: Fri, 18 Dec 2015 21:25:04 +0900 Subject: [PATCH] Fix a logical operator to match the spec --- components/script/cors.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/script/cors.rs b/components/script/cors.rs index 7e1f8cc658a..8e3b2b2b4c5 100644 --- a/components/script/cors.rs +++ b/components/script/cors.rs @@ -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