mirror of
https://github.com/servo/servo.git
synced 2025-08-03 04:30:10 +01:00
Ignore errors while setting username/password in strip_url_for_use_as_referrer
This commit is contained in:
parent
dd57641987
commit
1b9e84bd4c
1 changed files with 2 additions and 2 deletions
|
@ -248,8 +248,8 @@ fn strip_url_for_use_as_referrer(mut url: ServoUrl, origin_only: bool) -> Option
|
|||
// Step 3-6
|
||||
{
|
||||
let url = url.as_mut_url();
|
||||
url.set_username("").unwrap();
|
||||
url.set_password(None).unwrap();
|
||||
let _ = url.set_username("");
|
||||
let _ = url.set_password(None);
|
||||
url.set_fragment(None);
|
||||
// Note: The result of serializing referrer url should not be
|
||||
// greater than 4096 as specified in Step 6 of
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue