]> granicus.if.org Git - curl/commit
timecond: do not add if-modified-since without timecondition
authorDaniel Stenberg <daniel@haxx.se>
Wed, 25 Nov 2015 10:38:10 +0000 (11:38 +0100)
committerDaniel Stenberg <daniel@haxx.se>
Wed, 25 Nov 2015 10:38:10 +0000 (11:38 +0100)
commitcd2b73b3ed9d971eca87ee5c6245cc1cc6f83d06
tree9d32ba14e8adf741e4ed76d8648d8059f13f3a2a
parent5b96b5e79e912418bf01d99a6a27f77e349e4620
timecond: do not add if-modified-since without timecondition

The RTSP code path didn't skip adding the if-modified-since for certain
RTSP code paths, even if CURLOPT_TIMECONDITION was set to
CURL_TIMECOND_NONE.

Also, an unknown non-zero CURLOPT_TIMECONDITION value no longer equals
CURL_TIMECOND_IFMODSINCE.

Bug: http://stackoverflow.com/questions/33903982/curl-timecond-none-doesnt-work-how-to-remove-if-modified-since-header
lib/http.c