Skip to content
Permalink
Browse files

Prevents unwrapping invalid location url domains

  • Loading branch information
samfoo committed Aug 31, 2015
1 parent 9d0f418 commit 43e0c4ac897cb16e1f0faaa600f713d43445d3b0
Showing with 1 addition and 1 deletion.
  1. +1 −1 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);
}

0 comments on commit 43e0c4a

Please sign in to comment.
You can’t perform that action at this time.