show a verbose warning message in case cookie-saving fails, after
Ralph Mitchell's notification.
This commit is contained in:
parent
c8ecbda40b
commit
e0d8615ece
@ -210,9 +210,11 @@ CURLcode Curl_close(struct SessionHandle *data)
|
|||||||
free(data->state.headerbuff);
|
free(data->state.headerbuff);
|
||||||
|
|
||||||
#ifndef CURL_DISABLE_HTTP
|
#ifndef CURL_DISABLE_HTTP
|
||||||
if(data->set.cookiejar)
|
if(data->set.cookiejar) {
|
||||||
/* we have a "destination" for all the cookies to get dumped to */
|
/* 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);
|
Curl_cookie_cleanup(data->cookies);
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
x
Reference in New Issue
Block a user