c260e0
From 8f10bf46681c17c7dfc9c9109c36d6e3564bd4ed Mon Sep 17 00:00:00 2001
c260e0
From: Daniel Stenberg <daniel@haxx.se>
c260e0
Date: Thu, 15 May 2014 23:28:31 +0200
c260e0
Subject: [PATCH] HTTP: CREDSPERREQUEST is for HTTP too
c260e0
c260e0
Commit 517b06d657ace (in 7.36.0) that brought the CREDSPERREQUEST flag
c260e0
only set it for HTTPS, making HTTP less good at doing connection re-use
c260e0
than it should be. Now set it for HTTP as well.
c260e0
c260e0
Simple test case
c260e0
c260e0
"curl -v -u foo:bar localhost --next -u bar:foo localhos"
c260e0
c260e0
Bug: http://curl.haxx.se/mail/lib-2014-05/0127.html
c260e0
Reported-by: Kamil Dudka
c260e0
c260e0
Upstream-commit: 68f0166a92cff3660993645e9ad278b26d295832
c260e0
Signed-off-by: Kamil Dudka <kdudka@redhat.com>
c260e0
---
c260e0
 lib/http.c | 2 +-
c260e0
 1 file changed, 1 insertion(+), 1 deletion(-)
c260e0
c260e0
diff --git a/lib/http.c b/lib/http.c
c260e0
index c007226..e2448bc 100644
c260e0
--- a/lib/http.c
c260e0
+++ b/lib/http.c
c260e0
@@ -118,7 +118,7 @@ const struct Curl_handler Curl_handler_http = {
c260e0
   ZERO_NULL,                            /* readwrite */
c260e0
   PORT_HTTP,                            /* defport */
c260e0
   CURLPROTO_HTTP,                       /* protocol */
c260e0
-  PROTOPT_NONE                          /* flags */
c260e0
+  PROTOPT_CREDSPERREQUEST               /* flags */
c260e0
 };
c260e0
 
c260e0
 #ifdef USE_SSL
c260e0
-- 
c260e0
2.1.0
c260e0