]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Add Translate: and Unless-Modified-Since: headers to known list.
authorAmos Jeffries <squid3@treenet.co.nz>
Fri, 29 May 2009 07:37:45 +0000 (19:37 +1200)
committerAmos Jeffries <squid3@treenet.co.nz>
Fri, 29 May 2009 07:37:45 +0000 (19:37 +1200)
They are custom microsoft headers we may need to use header_access to
crop away. Translate: is needed for WEBDAV so we must leave this up
to individual admin.

src/HttpHeader.cc
src/HttpHeader.h

index 03a77cb3bb7b1be0db545f338caca543b6dfb03c..d0666737461393e098a9e9b5b3857b63be60aa9f 100644 (file)
@@ -124,6 +124,8 @@ static const HttpHeaderFieldAttrs HeadersAttrs[] = {
     {"Title", HDR_TITLE, ftStr},
     {"Trailers", HDR_TRAILERS, ftStr},
     {"Transfer-Encoding", HDR_TRANSFER_ENCODING, ftStr},
+    {"Translate", HDR_TRANSLATE, ftStr},       /* for now. may need to crop */
+    {"Unless-Modified-Since", HDR_UNLESS_MODIFIED_SINCE, ftStr},  /* for now ignore. may need to crop */
     {"Upgrade", HDR_UPGRADE, ftStr},   /* for now */
     {"User-Agent", HDR_USER_AGENT, ftStr},
     {"Vary", HDR_VARY, ftStr}, /* for now */
index dce629d9a869a59eb2330b7987c3f55950883018..0ff017488924ba24b0426d09a1089e5d1b0ce612 100644 (file)
@@ -105,6 +105,8 @@ typedef enum {
     HDR_TITLE,
     HDR_TRAILERS,
     HDR_TRANSFER_ENCODING,
+    HDR_TRANSLATE,             /* IIS custom header we may need to cut off */
+    HDR_UNLESS_MODIFIED_SINCE,             /* IIS custom header we may need to cut off */
     HDR_UPGRADE,
     HDR_USER_AGENT,
     HDR_VARY,