]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Register If-Unmodified-Since from RFC 7232
authorAmos Jeffries <squid3@treenet.co.nz>
Thu, 31 Jul 2014 02:06:47 +0000 (19:06 -0700)
committerAmos Jeffries <squid3@treenet.co.nz>
Thu, 31 Jul 2014 02:06:47 +0000 (19:06 -0700)
src/HttpHeader.cc
src/HttpHeader.h

index d8d1aaebcea25950d33a561e1b1cf6f8726d4b0e..618b0bc87f3df312ab7d72a99c5414566675f6c3 100644 (file)
@@ -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},
index ad5079bfda561c46c48c9a6f161b177ceea2b9de..70c962c528ace7e8595f2428f6cd00cda17fa71d 100644 (file)
@@ -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 */