aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/cors.rs
diff options
context:
space:
mode:
authorEitan Mosenkis <eitan@mosenkis.net>2015-12-09 00:29:22 +0200
committerDongie Agnir <dongie.agnir@gmail.com>2016-04-01 16:15:55 -1000
commit50af352605de6daccd43201156466bce00ba36bf (patch)
treebf877113379a81402ce116f42d7ac75ebd6444a5 /components/script/cors.rs
parente546637d917267f21e8e9d85808d7e2d2abeea6a (diff)
downloadservo-50af352605de6daccd43201156466bce00ba36bf.tar.gz
servo-50af352605de6daccd43201156466bce00ba36bf.zip
Fix compile errors.
Diffstat (limited to 'components/script/cors.rs')
-rw-r--r--components/script/cors.rs2
1 files changed, 1 insertions, 1 deletions
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.