parsedate: CURL_DISABLE_PARSEDATE

This commit is contained in:
Daniel Stenberg 2019-05-05 17:08:21 +02:00
parent e5b546b339
commit b084616210
No known key found for this signature in database
GPG key ID: 5CC908FDB71E12C2
2 changed files with 37 additions and 15 deletions

View file

@ -1881,6 +1881,7 @@ CURLcode Curl_add_custom_headers(struct connectdata *conn,
return CURLE_OK;
}
#ifndef CURL_DISABLE_PARSEDATE
CURLcode Curl_add_timecondition(struct Curl_easy *data,
Curl_send_buffer *req_buffer)
{
@ -1939,6 +1940,16 @@ CURLcode Curl_add_timecondition(struct Curl_easy *data,
return result;
}
#else
/* disabled */
CURLcode Curl_add_timecondition(struct Curl_easy *data,
Curl_send_buffer *req_buffer)
{
(void)data;
(void)req_buffer;
return CURLE_OK;
}
#endif
/*
* Curl_http() gets called from the generic multi_do() function when a HTTP