From 5853fbb2f0d2389c368a28ac1e8c6d0543780677 Mon Sep 17 00:00:00 2001 From: Michael Wallner Date: Wed, 3 Aug 2005 13:30:25 +0000 Subject: [PATCH] - support for proprietary Unless-Modified-Since header (eq If-Unmodified-Since) --- http_send_api.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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; -- 2.30.2