mirror of
https://github.com/servo/servo.git
synced 2025-08-03 04:30:10 +01:00
Prevents unwrapping invalid location url domains
This commit is contained in:
parent
9d0f418ee0
commit
43e0c4ac89
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue