aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSam Gibson <sam@ifdown.net>2015-08-31 13:47:35 +1200
committerSam Gibson <sam@ifdown.net>2015-08-31 13:47:35 +1200
commit43e0c4ac897cb16e1f0faaa600f713d43445d3b0 (patch)
tree92d11ca69243d13b7f4672508395bc571de235e2
parent9d0f418ee05b86399ce11ee0cbe0423a8f40ee9e (diff)
downloadservo-43e0c4ac897cb16e1f0faaa600f713d43445d3b0.tar.gz
servo-43e0c4ac897cb16e1f0faaa600f713d43445d3b0.zip
Prevents unwrapping invalid location url domains
-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 8f0700853fd..cf5078a1a4f 100644
--- a/components/net/http_loader.rs
+++ b/components/net/http_loader.rs
@@ -460,7 +460,7 @@ pub fn load<A>(load_data: LoadData,
loop {
iters = iters + 1;
- if &*url.scheme != "https" && request_must_be_secured(&url, &resource_mgr_chan) {
+ if &*url.scheme == "http" && request_must_be_secured(&url, &resource_mgr_chan) {
info!("{} is in the strict transport security list, requesting secure host", url);
url = secure_url(&url);
}