updated basic auth cache to key off of url origin

This commit is contained in:
Bryan Gilbert 2016-09-14 16:08:36 -04:00
parent e3d946bb29
commit 82e45a403f
4 changed files with 9 additions and 8 deletions

View file

@ -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;