mirror of
https://github.com/servo/servo.git
synced 2025-08-11 16:35:33 +01:00
updated basic auth cache to key off of url origin
This commit is contained in:
parent
e3d946bb29
commit
82e45a403f
4 changed files with 9 additions and 8 deletions
|
@ -1533,7 +1533,7 @@ fn test_if_auth_creds_not_in_url_but_in_cache_it_sets_it() {
|
|||
password: "test".to_owned(),
|
||||
};
|
||||
|
||||
http_state.auth_cache.write().unwrap().entries.insert(url.clone(), auth_entry);
|
||||
http_state.auth_cache.write().unwrap().entries.insert(url.origin().clone(), auth_entry);
|
||||
|
||||
let mut load_data = LoadData::new(LoadContext::Browsing, url, &HttpTest);
|
||||
load_data.credentials_flag = true;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue