From: Amos Jeffries Date: Sat, 6 Jun 2009 10:07:29 +0000 (+1200) Subject: Add Translate: and Unless-Modified-Since: headers to known list. X-Git-Tag: SQUID_3_0_STABLE16~13 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=78dfd5151f010090c92a6b1d8a1a0f6f0af79de5;p=thirdparty%2Fsquid.git Add Translate: and Unless-Modified-Since: headers to known list. 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. --- diff --git a/src/HttpHeader.cc b/src/HttpHeader.cc index 95495f636f..6af9135b2c 100644 --- a/src/HttpHeader.cc +++ b/src/HttpHeader.cc @@ -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 */ diff --git a/src/HttpHeader.h b/src/HttpHeader.h index cc49ac4383..3a23b3788e 100644 --- a/src/HttpHeader.h +++ b/src/HttpHeader.h @@ -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,