From: Amos Jeffries Date: Tue, 17 Nov 2009 05:43:25 +0000 (+1300) Subject: Send correct Connection: header on intercepted replies X-Git-Tag: SQUID_3_2_0_1~573 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=0d1858cc3577bcbd8b963ee806e9f93f90057c7b;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 9f252cbfaf..9e0c675eb8 100644 --- a/src/client_side_reply.cc +++ b/src/client_side_reply.cc @@ -1412,7 +1412,7 @@ clientReplyContext::buildReplyHeader() hdr->putStr(HDR_VIA, strVia.termedBuf()); } /* Signal keep-alive if needed */ - hdr->putStr(http->flags.accel ? HDR_CONNECTION : HDR_PROXY_CONNECTION, + hdr->putStr( (http->flags.accel || http->flags.intercepted)? HDR_CONNECTION : HDR_PROXY_CONNECTION, request->flags.proxy_keepalive ? "keep-alive" : "close"); #if ADD_X_REQUEST_URI