X-Git-Url: https://git.m6w6.name/?p=m6w6%2Fext-http;a=blobdiff_plain;f=http_send_api.c;h=630d9dc39dbd191cd983e9148d9b7720e4318211;hp=e832c38165f86b77e09e8aeed0a773fdb3e9db94;hb=76d019d55561c397209d49f7d594f2cfe022cdf9;hpb=620dcb8928ce5e81baa42f794687e17c0b6022ee 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;