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

src/client_side_reply.cc

index f10ee157575b4f875d8cdab952b7ca0498e3c38a..9e4aad1c9825813d9701ccb1f3d18a73aa75afde 100644 (file)
@@ -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
     /*