the new cookie functions that require 'data' passed in

This commit is contained in:
Daniel Stenberg
2003-08-11 09:56:06 +00:00
parent 2dd1518d63
commit 96e217b496
6 changed files with 17 additions and 10 deletions

View File

@@ -617,7 +617,7 @@ CURLcode Curl_setopt(struct SessionHandle *data, CURLoption option, ...)
* Activate the cookie parser. This may or may not already
* have been made.
*/
data->cookies = Curl_cookie_init(NULL, data->cookies,
data->cookies = Curl_cookie_init(data, NULL, data->cookies,
data->set.cookiesession);
break;
#endif
@@ -1210,7 +1210,7 @@ CURLcode Curl_setopt(struct SessionHandle *data, CURLoption option, ...)
/* check cookie list is set */
if(!data->cookies)
data->cookies = Curl_cookie_init( NULL, NULL, TRUE );
data->cookies = Curl_cookie_init(data, NULL, NULL, TRUE );
/* check for host cache not needed,
* it will be done by curl_easy_perform */