From: Amos Jeffries Date: Fri, 29 May 2009 07:37:45 +0000 (+1200) Subject: Add Translate: and Unless-Modified-Since: headers to known list. X-Git-Tag: SQUID_3_2_0_1~998 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=af48ea68de30666b8846a0b3ba28c7647f5dfe9c;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 03a77cb3bb..d066673746 100644 --- a/src/HttpHeader.cc +++ b/src/HttpHeader.cc @@ -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 dce629d9a8..0ff0174889 100644 --- a/src/HttpHeader.h +++ b/src/HttpHeader.h @@ -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,