From: Michael Wallner Date: Wed, 3 Aug 2005 13:30:25 +0000 (+0000) Subject: - support for proprietary Unless-Modified-Since header (eq If-Unmodified-Since) X-Git-Tag: RELEASE_0_12_0~45 X-Git-Url: https://git.m6w6.name/?a=commitdiff_plain;h=5853fbb2f0d2389c368a28ac1e8c6d0543780677;p=m6w6%2Fext-http - support for proprietary Unless-Modified-Since header (eq If-Unmodified-Since) --- diff --git a/http_send_api.c b/http_send_api.c index e832c38..630d9dc 100644 --- a/http_send_api.c +++ b/http_send_api.c @@ -365,7 +365,8 @@ PHP_HTTP_API STATUS _http_send(const void *data_ptr, size_t data_size, http_send /* Range Request - only send ranges if entity hasn't changed */ if ( range_status == RANGE_OK && http_match_etag_ex("HTTP_IF_MATCH", HTTP_G(send).unquoted_etag, 0) && - http_match_last_modified_ex("HTTP_IF_UNMODIFIED_SINCE", HTTP_G(send).last_modified, 0)) { + http_match_last_modified_ex("HTTP_IF_UNMODIFIED_SINCE", HTTP_G(send).last_modified, 0) && + http_match_last_modified_ex("HTTP_UNLESS_MODIFIED_SINCE", HTTP_G(send).last_modified, 0)) { STATUS result = http_send_ranges(&ranges, data_ptr, data_size, data_mode); zend_hash_destroy(&ranges); return result;