From e1afbf54b32262d70dd1b9b2c5c098a4b5cc3a73 Mon Sep 17 00:00:00 2001 From: Amos Jeffries Date: Fri, 20 Nov 2009 00:34:54 +1300 Subject: [PATCH] Send correct Connection: header on intercepted replies Intercepted apps are expecting Connection: back from the server not our default Proxy-Connection: --- src/client_side_reply.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 2.47.3