From: Amos Jeffries Date: Fri, 27 Aug 2010 16:42:45 +0000 (-0600) Subject: Author: Alex Rousskov X-Git-Tag: SQUID_3_1_8~26 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=fb9159a03c540d93f8514ce4e13c878d072b5d18;p=thirdparty%2Fsquid.git Author: Alex Rousskov HTTP/1.1 Compliance: rename Trailers header to Trailer everywhere. RFC 2616 section 13.5.1 has a typo in the Trailers header name. The correct name is Trailer. See http://trac.tools.ietf.org/wg/httpbis/trac/ticket/9 Co-Advisor test cases: test_case/rfc2616/hopHdr-Trailer-toClt test_case/rfc2616/hopHdr-Trailer-toSrv --- diff --git a/src/HttpHeader.cc b/src/HttpHeader.cc index 22903cb0cc..b1f7f6e390 100644 --- a/src/HttpHeader.cc +++ b/src/HttpHeader.cc @@ -123,7 +123,7 @@ static const HttpHeaderFieldAttrs HeadersAttrs[] = { {"Set-Cookie", HDR_SET_COOKIE, ftStr}, {"TE", HDR_TE, ftStr}, {"Title", HDR_TITLE, ftStr}, - {"Trailers", HDR_TRAILERS, ftStr}, + {"Trailer", HDR_TRAILER, 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 */ @@ -249,7 +249,7 @@ static http_hdr_type RequestHeadersArr[] = { static HttpHeaderMask HopByHopHeadersMask; static http_hdr_type HopByHopHeadersArr[] = { HDR_CONNECTION, HDR_KEEP_ALIVE, /*HDR_PROXY_AUTHENTICATE,*/ HDR_PROXY_AUTHORIZATION, - HDR_TE, HDR_TRAILERS, HDR_TRANSFER_ENCODING, HDR_UPGRADE, HDR_PROXY_CONNECTION + HDR_TE, HDR_TRAILER, HDR_TRANSFER_ENCODING, HDR_UPGRADE, HDR_PROXY_CONNECTION }; /* header accounting */ diff --git a/src/HttpHeader.h b/src/HttpHeader.h index c9e3e9696b..e7a26a3813 100644 --- a/src/HttpHeader.h +++ b/src/HttpHeader.h @@ -104,7 +104,7 @@ typedef enum { HDR_SET_COOKIE, HDR_TE, HDR_TITLE, - HDR_TRAILERS, + HDR_TRAILER, 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 */ diff --git a/src/HttpReply.cc b/src/HttpReply.cc index 85ead64e4c..f82a1bd803 100644 --- a/src/HttpReply.cc +++ b/src/HttpReply.cc @@ -62,7 +62,7 @@ static HttpHeaderMask Denied304HeadersMask; static http_hdr_type Denied304HeadersArr[] = { // hop-by-hop headers HDR_CONNECTION, HDR_KEEP_ALIVE, HDR_PROXY_AUTHENTICATE, HDR_PROXY_AUTHORIZATION, - HDR_TE, HDR_TRAILERS, HDR_TRANSFER_ENCODING, HDR_UPGRADE, + HDR_TE, HDR_TRAILER, HDR_TRANSFER_ENCODING, HDR_UPGRADE, // entity headers HDR_ALLOW, HDR_CONTENT_ENCODING, HDR_CONTENT_LANGUAGE, HDR_CONTENT_LENGTH, HDR_CONTENT_MD5, HDR_CONTENT_RANGE, HDR_CONTENT_TYPE, HDR_LAST_MODIFIED diff --git a/src/http.cc b/src/http.cc index f600c3312b..2906a3808d 100644 --- a/src/http.cc +++ b/src/http.cc @@ -1768,7 +1768,7 @@ copyOneHeaderFromClientsideRequestToUpstreamRequest(const HttpHeaderEntry *e, co case HDR_TE: /** \par TE: */ case HDR_KEEP_ALIVE: /** \par Keep-Alive: */ case HDR_PROXY_AUTHENTICATE: /** \par Proxy-Authenticate: */ - case HDR_TRAILERS: /** \par Trailers: */ + case HDR_TRAILER: /** \par Trailer: */ case HDR_UPGRADE: /** \par Upgrade: */ case HDR_TRANSFER_ENCODING: /** \par Transfer-Encoding: */ break;