From: Amos Jeffries Date: Thu, 19 Nov 2009 11:34:54 +0000 (+1300) Subject: Send correct Connection: header on intercepted replies X-Git-Tag: SQUID_3_1_0_15~20 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=e1afbf54b32262d70dd1b9b2c5c098a4b5cc3a73;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