From: Daniel Stenberg Date: Thu, 15 May 2014 21:28:31 +0000 (+0200) Subject: HTTP: CREDSPERREQUEST is for HTTP too X-Git-Tag: curl-7_37_0~30 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=68f0166a92;p=thirdparty%2Fcurl.git HTTP: CREDSPERREQUEST is for HTTP too Commit 517b06d657ace (in 7.36.0) that brought the CREDSPERREQUEST flag only set it for HTTPS, making HTTP less good at doing connection re-use than it should be. Now set it for HTTP as well. Simple test case "curl -v -u foo:bar localhost --next -u bar:foo localhos" Bug: http://curl.haxx.se/mail/lib-2014-05/0127.html Reported-by: Kamil Dudka --- diff --git a/lib/http.c b/lib/http.c index 937d241a20..1bb9ffb696 100644 --- a/lib/http.c +++ b/lib/http.c @@ -121,7 +121,7 @@ const struct Curl_handler Curl_handler_http = { ZERO_NULL, /* readwrite */ PORT_HTTP, /* defport */ CURLPROTO_HTTP, /* protocol */ - PROTOPT_NONE /* flags */ + PROTOPT_CREDSPERREQUEST /* flags */ }; #ifdef USE_SSL