The unified diff between revisions [4d68673c..] and [29abc3f7..] is displayed below. It can also be downloaded as a raw diff.
This diff has been restricted to the following files: 'src/client_side.c'
#
#
# patch "src/client_side.c"
# from [aeb1c49f1a704cceb4928f31ac6df0b91c200cad]
# to [4b258b7a5b5bedb849df5fd524f799b736235972]
#
============================================================
--- src/client_side.c aeb1c49f1a704cceb4928f31ac6df0b91c200cad
+++ src/client_side.c 4b258b7a5b5bedb849df5fd524f799b736235972
@@ -1033,8 +1033,13 @@ clientInterpretRequestHeaders(clientHttp
if (request->range)
request->flags.range = 1;
}
- if ((httpHeaderHas(req_hdr, HDR_AUTHORIZATION)) || (request->flags.pinned))
+ if(http->conn->pinned) {
request->flags.auth = 1;
+ request->flags.pinned = 1;
+ request->flags.must_keepalive = 1;
+ }
+ if (httpHeaderHas(req_hdr, HDR_AUTHORIZATION))
+ request->flags.auth = 1;
if (request->login[0] != '\0')
request->flags.auth = 1;
if (httpHeaderHas(req_hdr, HDR_VIA)) {
@@ -1445,8 +1450,9 @@ clientBuildReplyHeader(clientHttpRequest
(strncasecmp(value, "Negotiate", 9) == 0 &&
(value[9] == '\0' || value[9] == ' '))) {
httpHeaderPutStr(hdr, HDR_PROXY_SUPPORT, "Session-Based-Authentication");
- httpHeaderPutStr(hdr, HDR_CONNECTION, "Proxy-support");
request->flags.pinned=1;
+ request->flags.must_keepalive = 1;
+ http->conn->pinned=1;
break;
}
}