From: Amos Jeffries Date: Thu, 31 Jul 2014 02:06:47 +0000 (-0700) Subject: Register If-Unmodified-Since from RFC 7232 X-Git-Tag: SQUID_3_5_0_1~126 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=ff0ec1d0d6440053da1819bca2e42e04982a84e7;p=thirdparty%2Fsquid.git Register If-Unmodified-Since from RFC 7232 --- diff --git a/src/HttpHeader.cc b/src/HttpHeader.cc index d8d1aaebce..618b0bc87f 100644 --- a/src/HttpHeader.cc +++ b/src/HttpHeader.cc @@ -119,6 +119,7 @@ static const HttpHeaderFieldAttrs HeadersAttrs[] = { {"If-Modified-Since", HDR_IF_MODIFIED_SINCE, ftDate_1123}, {"If-None-Match", HDR_IF_NONE_MATCH, ftStr}, /* for now */ {"If-Range", HDR_IF_RANGE, ftDate_1123_or_ETag}, + {"If-Unmodified-Since", HDR_IF_UNMODIFIED_SINCE, ftDate_1123}, {"Keep-Alive", HDR_KEEP_ALIVE, ftStr}, {"Key", HDR_KEY, ftStr}, {"Last-Modified", HDR_LAST_MODIFIED, ftDate_1123}, diff --git a/src/HttpHeader.h b/src/HttpHeader.h index ad5079bfda..70c962c528 100644 --- a/src/HttpHeader.h +++ b/src/HttpHeader.h @@ -92,7 +92,7 @@ typedef enum { HDR_IF_MODIFIED_SINCE, /**< RFC 2608, 2616 */ HDR_IF_NONE_MATCH, /**< RFC 2608, 2616 */ HDR_IF_RANGE, /**< RFC 2608, 2616 */ - /*HDR_IF_UNMODIFIED_SINCE,*/ /**< RFC 2608, 2616 */ + HDR_IF_UNMODIFIED_SINCE, /**< RFC 7232 */ HDR_KEEP_ALIVE, /**< obsolete HTTP/1.0 header we may need to erase */ HDR_KEY, /**< experimental RFC Draft draft-fielding-http-key-02 */ HDR_LAST_MODIFIED, /**< RFC 2608, 2616 */