]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Add Translate: and Unless-Modified-Since: headers to known list.
authorAmos Jeffries <squid3@treenet.co.nz>
Sat, 6 Jun 2009 10:07:29 +0000 (22:07 +1200)
committerAmos Jeffries <squid3@treenet.co.nz>
Sat, 6 Jun 2009 10:07:29 +0000 (22:07 +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 95495f636f4af5af01ebd41226b94450cd9df4fb..6af9135b2cfab2d2ff490c94b67e686f1ca6a2e6 100644 (file)
@@ -84,7 +84,7 @@ static const HttpHeaderFieldAttrs HeadersAttrs[] =
         {"Cache-Control", HDR_CACHE_CONTROL, ftPCc},
         {"Connection", HDR_CONNECTION, ftStr},
         {"Content-Base", HDR_CONTENT_BASE, ftStr},
-    {"Content-Disposition", HDR_CONTENT_DISPOSITION, ftStr},  /* for now */
+        {"Content-Disposition", HDR_CONTENT_DISPOSITION, ftStr},  /* for now */
         {"Content-Encoding", HDR_CONTENT_ENCODING, ftStr},
         {"Content-Language", HDR_CONTENT_LANGUAGE, ftStr},
         {"Content-Length", HDR_CONTENT_LENGTH, ftInt64},
@@ -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 cc49ac43836f9c636da027a423494688cbac50dc..3a23b3788e2d7dd0821722aff42cba00943ddd48 100644 (file)
@@ -98,6 +98,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,