aboutsummaryrefslogtreecommitdiffstats
path: root/components/net
diff options
context:
space:
mode:
authorFausto Núñez Alberro <fausto.nunez@outlook.com>2017-04-26 01:07:31 +0200
committerFausto Núñez Alberro <fausto.nunez@mailbox.org>2017-07-16 21:44:33 +0200
commit6032940fb8723d36c6f5089593d0a57f6a7efc93 (patch)
treec35b06e617fe52d76b07fd99c06765c688e82637 /components/net
parent104e0b473073340689b4bca5c128c61632d4e58d (diff)
downloadservo-6032940fb8723d36c6f5089593d0a57f6a7efc93.tar.gz
servo-6032940fb8723d36c6f5089593d0a57f6a7efc93.zip
Change RequestInit origin type to ImmutableOrigin
Diffstat (limited to 'components/net')
-rw-r--r--components/net/http_loader.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/components/net/http_loader.rs b/components/net/http_loader.rs
index 73ef5b46451..6c59669a750 100644
--- a/components/net/http_loader.rs
+++ b/components/net/http_loader.rs
@@ -1371,7 +1371,7 @@ fn cors_check(request: &Request, response: &Response) -> Result<(), ()> {
};
match request.origin {
- Origin::Origin(ref o) if o.ascii_serialization() == origin => {},
+ Origin::Origin(ref o) if o.ascii_serialization() == origin.trim() => {},
_ => return Err(())
}