--------------------- PatchSet 11766 Date: 2007/11/26 10:37:33 Author: adrian Branch: SQUID_2_6 Tag: (none) Log: Author: hno Patchset 11708: Ignore Content-Length in chunked responses instead of rejecting the response as invalid Members: src/http.c:1.419.2.9->1.419.2.10 Index: squid/src/http.c =================================================================== RCS file: /cvsroot/squid/squid/src/http.c,v retrieving revision 1.419.2.9 retrieving revision 1.419.2.10 diff -u -r1.419.2.9 -r1.419.2.10 --- squid/src/http.c 2 Oct 2007 01:04:26 -0000 1.419.2.9 +++ squid/src/http.c 26 Nov 2007 10:37:33 -0000 1.419.2.10 @@ -1,6 +1,6 @@ /* - * $Id: http.c,v 1.419.2.9 2007/10/02 01:04:26 hno Exp $ + * $Id: http.c,v 1.419.2.10 2007/11/26 10:37:33 adrian Exp $ * * DEBUG: section 11 Hypertext Transfer Protocol (HTTP) * AUTHOR: Harvest Derived @@ -506,8 +506,8 @@ stringClean(&tr); if (httpState->flags.chunked && reply->content_length >= 0) { /* Can't have a content-length in chunked encoding */ - reply->sline.status = HTTP_INVALID_HEADER; - return done; + reply->content_length = -1; + httpHeaderDelById(&reply->header, HDR_CONTENT_LENGTH); } } if (!httpState->flags.chunked) {