The unified diff between revisions [f4c2c361..] and [79218754..] 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 [229f4ea833118b28f3a6b9cbde3113da04482cb4]
#    to [27a0fe0fa398f1d37bde31b754d7518f913a318d]
#
============================================================
--- src/client_side.c	229f4ea833118b28f3a6b9cbde3113da04482cb4
+++ src/client_side.c	27a0fe0fa398f1d37bde31b754d7518f913a318d
@@ -1033,12 +1033,14 @@ clientInterpretRequestHeaders(clientHttp
 	if (request->range)
 	    request->flags.range = 1;
     }
-    if(http->conn->pinned && (pconnLookup(request->host,request->port,&request->client_addr,request->client_port) != NULL) ) {
-	/* If there is a pconn tied to this client/port, an NTLM auth has
-	   occurred to the server on theis client connection */
-	request->flags.auth = 1;
-	request->flags.pinned = 1;
+    /* If any conneciton has been pinned to this client, force keep alive */
+    if(http->conn->pinned) {
 	request->flags.must_keepalive = 1;
+	/* If this specific host/port has been pinned to this client, flag */
+	if(pconnLookup(request->host,request->port,&request->client_addr,request->client_port) {
+	    request->flags.auth = 1;
+	    request->flags.pinned = 1;
+	}
     }
     else if (httpHeaderHas(req_hdr, HDR_AUTHORIZATION))
 	request->flags.auth = 1;