Cookies are now expired immediately before each lookup

This commit is contained in:
Patrick Shaughnessy 2020-01-24 17:51:34 -05:00
parent 12693b51f5
commit 6d31827464
7 changed files with 16 additions and 70 deletions

View file

@ -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()