diff options
author | Peter Simonyi <pts@petersimonyi.ca> | 2019-07-10 18:42:35 -0400 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2019-07-14 16:17:15 +0200 |
commit | 855887af7928d70a2938b7c9c750a0c237c47c15 (patch) | |
tree | 615789bd873a7166126fd2489bd17bd2264a5dc4 /lib/rtsp.c | |
parent | ac3d19a26de79d9ec62d20a1a0b645d7ddcc40fd (diff) | |
download | curl-855887af7928d70a2938b7c9c750a0c237c47c15.tar.gz |
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/rtsp.c')
-rw-r--r-- | lib/rtsp.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/rtsp.c b/lib/rtsp.c index 74cf23244..25e194a23 100644 --- a/lib/rtsp.c +++ b/lib/rtsp.c @@ -491,7 +491,7 @@ static CURLcode rtsp_do(struct connectdata *conn, bool *done) return result; if((rtspreq == RTSPREQ_SETUP) || (rtspreq == RTSPREQ_DESCRIBE)) { - result = Curl_add_timecondition(data, req_buffer); + result = Curl_add_timecondition(conn, req_buffer); if(result) return result; } |