From: Amos Jeffries Date: Sun, 6 Dec 2009 01:03:05 +0000 (+1300) Subject: Send correct Connection: header on intercepted replies X-Git-Tag: SQUID_3_0_STABLE21~13 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9d2f0475bb71f93c16a60695bce2a8750d5cf795;p=thirdparty%2Fsquid.git Send correct Connection: header on intercepted replies Intercepted apps are expecting Connection: back from the server not our default Proxy-Connection: --- diff --git a/src/client_side_reply.cc b/src/client_side_reply.cc index f10ee15757..9e4aad1c98 100644 --- a/src/client_side_reply.cc +++ b/src/client_side_reply.cc @@ -1302,8 +1302,8 @@ clientReplyContext::buildReplyHeader() hdr->putStr(HDR_VIA, strVia.buf()); } /* Signal keep-alive if needed */ - hdr->putStr(http->flags.accel ? HDR_CONNECTION : HDR_PROXY_CONNECTION, - request->flags.proxy_keepalive ? "keep-alive" : "close"); + hdr->putStr( (http->flags.accel || http->flags.transparent)? HDR_CONNECTION : HDR_PROXY_CONNECTION, + request->flags.proxy_keepalive ? "keep-alive" : "close"); #if ADD_X_REQUEST_URI /*