You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@trafficserver.apache.org by zw...@apache.org on 2019/10/29 16:12:22 UTC
[trafficserver] branch 9.0.x updated: Issue #6072: Make If-Range
date compare to be exact match.
This is an automated email from the ASF dual-hosted git repository.
zwoop pushed a commit to branch 9.0.x
in repository https://gitbox.apache.org/repos/asf/trafficserver.git
The following commit(s) were added to refs/heads/9.0.x by this push:
new a299a8f Issue #6072: Make If-Range date compare to be exact match.
a299a8f is described below
commit a299a8f81dea1f32d665a5fbd288865a21c34210
Author: Phil Sorber <so...@apache.org>
AuthorDate: Mon Oct 28 18:08:20 2019 -0600
Issue #6072: Make If-Range date compare to be exact match.
(cherry picked from commit 4ca3839c32131c8f7fc36813a1e5cbf3656e9592)
---
proxy/http/HttpTransactCache.cc | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/proxy/http/HttpTransactCache.cc b/proxy/http/HttpTransactCache.cc
index 8ea46c3..d732c53 100644
--- a/proxy/http/HttpTransactCache.cc
+++ b/proxy/http/HttpTransactCache.cc
@@ -1381,13 +1381,13 @@ HttpTransactCache::match_response_to_request_conditionals(HTTPHdr *request, HTTP
return HTTP_STATUS_RANGE_NOT_SATISFIABLE;
}
}
- // this a Date, similar to If-Unmodified-Since
+ // this a Date, similar to If-Unmodified-Since but must be an exact match
else {
// lm_value is zero if Last-modified not exists
ink_time_t lm_value = response->get_last_modified();
// condition fails if Last-modified not exists
- if ((request->get_if_range_date() < lm_value) || (lm_value == 0)) {
+ if ((request->get_if_range_date() != lm_value) || (lm_value == 0)) {
return HTTP_STATUS_RANGE_NOT_SATISFIABLE;
} else {
return response->status_get();