mirror of
https://github.com/servo/servo.git
synced 2025-08-03 04:30:10 +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
|
@ -827,7 +827,7 @@ fn http_network_or_cache_fetch(request: Rc<Request>,
|
|||
let mut authorization_value = None;
|
||||
|
||||
// Substep 4
|
||||
if let Some(basic) = auth_from_cache(&context.state.auth_cache, ¤t_url) {
|
||||
if let Some(basic) = auth_from_cache(&context.state.auth_cache, ¤t_url.origin()) {
|
||||
if !http_request.use_url_credentials || !has_credentials(¤t_url) {
|
||||
authorization_value = Some(basic);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue