]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Send correct Connection: header on intercepted replies
authorAmos Jeffries <squid3@treenet.co.nz>
Tue, 17 Nov 2009 05:43:25 +0000 (18:43 +1300)
committerAmos Jeffries <squid3@treenet.co.nz>
Tue, 17 Nov 2009 05:43:25 +0000 (18:43 +1300)
Intercepted apps are expecting Connection: back from the server not our
default Proxy-Connection:

src/client_side_reply.cc

index 9f252cbfaf3777555fa4335bd7575add27e82295..9e0c675eb8ecf23d3f2f5c4dab7672ec70ca35a3 100644 (file)
@@ -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