mirror of
https://github.com/servo/servo.git
synced 2025-07-22 23:03:42 +01:00
Only secure URL's that aren't already to HTTPS.
Cuts down on logger spam, and unnecessary Url::clone's
This commit is contained in:
parent
bae979137a
commit
5014da42fc
1 changed files with 1 additions and 1 deletions
|
@ -118,7 +118,7 @@ fn load(mut load_data: LoadData,
|
||||||
loop {
|
loop {
|
||||||
iters = iters + 1;
|
iters = iters + 1;
|
||||||
|
|
||||||
if request_must_be_secured(&hsts_list.lock().unwrap(), &url) {
|
if &*url.scheme != "https" && request_must_be_secured(&hsts_list.lock().unwrap(), &url) {
|
||||||
info!("{} is in the strict transport security list, requesting secure host", url);
|
info!("{} is in the strict transport security list, requesting secure host", url);
|
||||||
url = secure_url(&url);
|
url = secure_url(&url);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue