From: rousskov <> Date: Fri, 7 Sep 2007 23:54:52 +0000 (+0000) Subject: Bug 2077 fix: Avoid stuffing response headers into response bodies by X-Git-Tag: SQUID_3_0_RC1~56 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=acbf9428b963265c03d685b3e3824aad0e5942b3;p=thirdparty%2Fsquid.git Bug 2077 fix: Avoid stuffing response headers into response bodies by correctly updating headers_sz member in clientReplyContext::processReplyAccess Bug #2028 fix left the headers_sz member unset under certain common conditions. --- diff --git a/src/client_side_reply.cc b/src/client_side_reply.cc index f224718d24..f58c2708c7 100644 --- a/src/client_side_reply.cc +++ b/src/client_side_reply.cc @@ -1,6 +1,6 @@ /* - * $Id: client_side_reply.cc,v 1.138 2007/08/30 13:15:13 hno Exp $ + * $Id: client_side_reply.cc,v 1.139 2007/09/07 17:54:52 rousskov Exp $ * * DEBUG: section 88 Client-side Reply Routines * AUTHOR: Robert Collins (Originally Duane Wessels in client_side.c) @@ -1755,6 +1755,7 @@ clientReplyContext::processReplyAccess () /* Dont't block our own responses or HTTP status messages */ if (http->logType == LOG_TCP_DENIED || http->logType == LOG_TCP_DENIED_REPLY || alwaysAllowResponse(reply->sline.status)) { + headers_sz = reply->hdr_sz; processReplyAccessResult(1); return; }