mirror of
https://github.com/servo/servo.git
synced 2025-08-05 05:30:08 +01:00
Cookies are now expired immediately before each lookup
This commit is contained in:
parent
12693b51f5
commit
6d31827464
7 changed files with 16 additions and 70 deletions
|
@ -70,6 +70,7 @@ impl<'a> Handler for Client<'a> {
|
|||
}
|
||||
|
||||
let mut cookie_jar = self.http_state.cookie_jar.write().unwrap();
|
||||
cookie_jar.remove_expired_cookies_for_url(self.resource_url);
|
||||
if let Some(cookie_list) = cookie_jar.cookies_for_url(self.resource_url, CookieSource::HTTP)
|
||||
{
|
||||
req.headers_mut()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue