From 50af352605de6daccd43201156466bce00ba36bf Mon Sep 17 00:00:00 2001 From: Eitan Mosenkis Date: Wed, 9 Dec 2015 00:29:22 +0200 Subject: [PATCH] Fix compile errors. --- 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 56a5e609427..346f1119b25 100644 --- a/components/script/cors.rs +++ b/components/script/cors.rs @@ -74,7 +74,7 @@ impl CORSRequest { match &*destination.scheme { // As per (https://fetch.spec.whatwg.org/#main-fetch 5.1.9), about URLs can be fetched // the same as a basic request. - "about" if destination.path == Some("blank") => Ok(None), + "about" if destination.path() == Some(&["blank".to_owned()]) => Ok(None), // As per (https://fetch.spec.whatwg.org/#main-fetch 5.1.9), data URLs can be fetched // the same as a basic request if the request's method is GET and the // same-origin data-URL flag is set.