mirror of
https://github.com/servo/servo.git
synced 2025-08-03 04:30:10 +01:00
Re-parse URL to not have inconsistent state
This commit is contained in:
parent
795454fb81
commit
8a401d5a7f
1 changed files with 1 additions and 1 deletions
|
@ -308,7 +308,7 @@ pub fn secure_load_data(load_data: &LoadData) -> LoadData {
|
|||
let mut secure_load_data = load_data.clone();
|
||||
let mut secure_url = load_data.url.clone();
|
||||
secure_url.scheme = "https".to_string();
|
||||
secure_load_data.url = secure_url;
|
||||
secure_load_data.url = Url::parse(&secure_url.serialize()).unwrap();
|
||||
|
||||
secure_load_data
|
||||
},
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue