diff options
author | Sam Gibson <sam@ifdown.net> | 2015-08-31 13:47:35 +1200 |
---|---|---|
committer | Sam Gibson <sam@ifdown.net> | 2015-08-31 13:47:35 +1200 |
commit | 43e0c4ac897cb16e1f0faaa600f713d43445d3b0 (patch) | |
tree | 92d11ca69243d13b7f4672508395bc571de235e2 | |
parent | 9d0f418ee05b86399ce11ee0cbe0423a8f40ee9e (diff) | |
download | servo-43e0c4ac897cb16e1f0faaa600f713d43445d3b0.tar.gz servo-43e0c4ac897cb16e1f0faaa600f713d43445d3b0.zip |
Prevents unwrapping invalid location url domains
-rw-r--r-- | components/net/http_loader.rs | 2 |
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); } |