From: Amos Jeffries Date: Wed, 20 Oct 2010 06:04:52 +0000 (-0600) Subject: Author: Alex Rousskov X-Git-Tag: SQUID_3_1_9~32 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=73534e47c2e42e7d64964ed9ec39d876db81f7ab;p=thirdparty%2Fsquid.git Author: Alex Rousskov HTTP Compliance: do not remove ETag header from partial responses RFC 2616 section 10.2.7 says that partial responses MUST include ETag header if it would have been sent in a 200 response to the same request. Co-Advisor test cases: test_case/rfc2616/scHdrs-206-include-explicit-withVary-noIfs test_case/rfc2616/scHdrs-206-include-explicit-woutVary-noIfs test_case/rfc2616/scHdrs-206-include-other-If-Range-strong --- diff --git a/src/client_side.cc b/src/client_side.cc index d6576489e9..9326ee45a3 100644 --- a/src/client_side.cc +++ b/src/client_side.cc @@ -1161,8 +1161,6 @@ ClientSocketContext::buildRangeHeader(HttpReply * rep) debugs(33, 3, "clientBuildRangeHeader: range spec count: " << spec_count << " virgin clen: " << rep->content_length); assert(spec_count > 0); - /* ETags should not be returned with Partial Content replies? */ - hdr->delById(HDR_ETAG); /* append appropriate header(s) */ if (spec_count == 1) {