Skip to content
Snippets Groups Projects
Commit e0d8615e authored by Daniel Stenberg's avatar Daniel Stenberg
Browse files

show a verbose warning message in case cookie-saving fails, after

Ralph Mitchell's notification.
parent c8ecbda4
No related branches found
No related tags found
No related merge requests found
......@@ -210,9 +210,11 @@ CURLcode Curl_close(struct SessionHandle *data)
free(data->state.headerbuff);
#ifndef CURL_DISABLE_HTTP
if(data->set.cookiejar)
if(data->set.cookiejar) {
/* we have a "destination" for all the cookies to get dumped to */
Curl_cookie_output(data->cookies, data->set.cookiejar);
if(Curl_cookie_output(data->cookies, data->set.cookiejar))
infof(data, "WARNING: failed to save cookies in given jar\n");
}
Curl_cookie_cleanup(data->cookies);
#endif
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment