]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
HTTP Compliance: do not remove ETag header from partial responses
authorAlex Rousskov <rousskov@measurement-factory.com>
Wed, 22 Sep 2010 23:04:40 +0000 (17:04 -0600)
committerAlex Rousskov <rousskov@measurement-factory.com>
Wed, 22 Sep 2010 23:04:40 +0000 (17:04 -0600)
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

src/client_side.cc

index e628863b8b7baa41f70c66c500a64d684a992e3d..360b1394531f444f39bc3e589f0b1ba73aba847a 100644 (file)
@@ -1261,8 +1261,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) {