]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Bug 2077 fix: Avoid stuffing response headers into response bodies by
authorrousskov <>
Fri, 7 Sep 2007 23:54:52 +0000 (23:54 +0000)
committerrousskov <>
Fri, 7 Sep 2007 23:54:52 +0000 (23:54 +0000)
correctly updating headers_sz member in clientReplyContext::processReplyAccess

Bug #2028 fix left the headers_sz member unset under certain common
conditions.

src/client_side_reply.cc

index f224718d24e73eb534852b871c9162cb2112da58..f58c2708c71948cd513f079360fba789c7ce0fd5 100644 (file)
@@ -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;
     }