write cookie_jar, hsts_list, auth_cache, and local_data to file if profile_dir option is present

This commit is contained in:
Daniel 2016-04-16 21:09:43 -04:00
parent f051028ee8
commit d4f63cda5f
6 changed files with 150 additions and 13 deletions

View file

@ -1382,7 +1382,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().insert(url.clone(), auth_entry);
http_state.auth_cache.write().unwrap().entries.insert(url.clone(), auth_entry);
let mut load_data = LoadData::new(LoadContext::Browsing, url, None);
load_data.credentials_flag = true;