summaryrefslogtreecommitdiff
path: root/lib/http.c
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2019-05-05 17:08:21 +0200
committerDaniel Stenberg <daniel@haxx.se>2019-05-13 08:17:10 +0200
commitb084616210b778868fc0fbdc02fafb7ef85f835d (patch)
tree09dd3319a4808229df69bdd900439bf0b0be10b4 /lib/http.c
parente5b546b3397aa4fcd4ae5af71360f98f1b4768b6 (diff)
downloadcurl-b084616210b778868fc0fbdc02fafb7ef85f835d.tar.gz
parsedate: CURL_DISABLE_PARSEDATE
Diffstat (limited to 'lib/http.c')
-rw-r--r--lib/http.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/lib/http.c b/lib/http.c
index 328b17ee1..4d30d6e47 100644
--- a/lib/http.c
+++ b/lib/http.c
@@ -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