diff options
author | Lauri Kasanen <cand@gmx.com> | 2018-03-30 18:33:52 +0300 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2018-04-02 10:40:32 +0200 |
commit | 4073cd83b2f3bcf93f1ce7f5d567d22175bad9af (patch) | |
tree | eeee27d641e37738414d87e7bf1a716734b9776a /lib/setopt.c | |
parent | 28faaacee287b019bcf2961da3bf2f91d331bcbd (diff) |
cookies: when reading from a file, only remove_expired once
This drops the cookie load time for 8k cookies from 178ms to 15ms.
Closes #2441
Diffstat (limited to 'lib/setopt.c')
-rw-r--r-- | lib/setopt.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/lib/setopt.c b/lib/setopt.c index da364fa81..b0d9e23b4 100644 --- a/lib/setopt.c +++ b/lib/setopt.c @@ -781,11 +781,13 @@ CURLcode Curl_vsetopt(struct Curl_easy *data, CURLoption option, if(checkprefix("Set-Cookie:", argptr)) /* HTTP Header format line */ - Curl_cookie_add(data, data->cookies, TRUE, argptr + 11, NULL, NULL); + Curl_cookie_add(data, data->cookies, TRUE, FALSE, argptr + 11, NULL, + NULL); else /* Netscape format line */ - Curl_cookie_add(data, data->cookies, FALSE, argptr, NULL, NULL); + Curl_cookie_add(data, data->cookies, FALSE, FALSE, argptr, NULL, + NULL); Curl_share_unlock(data, CURL_LOCK_DATA_COOKIE); free(argptr); |