mirror of
https://github.com/curl/curl.git
synced 2026-04-15 04:41:41 +03:00
parent
a5f0ab7995
commit
de89b86046
1 changed files with 3 additions and 0 deletions
|
|
@ -1615,6 +1615,9 @@ static struct curl_slist *cookie_list(struct Curl_easy *data)
|
|||
if(!data->cookies || (data->cookies->numcookies == 0))
|
||||
return NULL;
|
||||
|
||||
/* at first, remove expired cookies */
|
||||
remove_expired(data->cookies);
|
||||
|
||||
for(i = 0; i < COOKIE_HASH_SIZE; i++) {
|
||||
for(n = Curl_llist_head(&data->cookies->cookielist[i]); n;
|
||||
n = Curl_node_next(n)) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue