mirror of
https://github.com/servo/servo.git
synced 2025-08-03 04:30:10 +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
|
@ -248,6 +248,7 @@ pub fn set_request_cookies(
|
|||
cookie_jar: &RwLock<CookieStorage>,
|
||||
) {
|
||||
let mut cookie_jar = cookie_jar.write().unwrap();
|
||||
cookie_jar.remove_expired_cookies_for_url(url);
|
||||
if let Some(cookie_list) = cookie_jar.cookies_for_url(url, CookieSource::HTTP) {
|
||||
headers.insert(
|
||||
header::COOKIE,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue