aboutsummaryrefslogtreecommitdiff
path: root/lib/http.h
diff options
context:
space:
mode:
authorPeter Simonyi <pts@petersimonyi.ca>2019-07-10 18:42:35 -0400
committerDaniel Stenberg <daniel@haxx.se>2019-07-14 16:17:15 +0200
commit855887af7928d70a2938b7c9c750a0c237c47c15 (patch)
tree615789bd873a7166126fd2489bd17bd2264a5dc4 /lib/http.h
parentac3d19a26de79d9ec62d20a1a0b645d7ddcc40fd (diff)
http: allow overriding timecond with custom header
With CURLOPT_TIMECONDITION set, a header is automatically added (e.g. If-Modified-Since). Allow this to be replaced or suppressed with CURLOPT_HTTPHEADER. Fixes #4103 Closes #4109
Diffstat (limited to 'lib/http.h')
-rw-r--r--lib/http.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/http.h b/lib/http.h
index 5af80e75d..72161f6b0 100644
--- a/lib/http.h
+++ b/lib/http.h
@@ -69,7 +69,7 @@ CURLcode Curl_add_buffer_send(Curl_send_buffer **inp,
size_t included_body_bytes,
int socketindex);
-CURLcode Curl_add_timecondition(struct Curl_easy *data,
+CURLcode Curl_add_timecondition(const struct connectdata *conn,
Curl_send_buffer *buf);
CURLcode Curl_add_custom_headers(struct connectdata *conn,
bool is_connect,