Skip to content

Commit f73ddbd

Browse files
committed
Merge branch 'http-empty-auth'
This topic branch fixes a rather serious regression with NTLM authentication: when using "empty credentials", i.e. when inserting ":@" into a URL (e.g. https://:@me.visualstudio.com/), we used to ask cURL to use the login credentials. But a recent change broke that. Which this branch fixes again. Signed-off-by: Johannes Schindelin <[email protected]>
2 parents 42f0332 + b9d016d commit f73ddbd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

http.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ static int curl_save_cookies;
109109
struct credential http_auth = CREDENTIAL_INIT;
110110
static int http_proactive_auth;
111111
static const char *user_agent;
112-
static int curl_empty_auth;
112+
static int curl_empty_auth = 1;
113113

114114
#if LIBCURL_VERSION_NUM >= 0x071700
115115
/* Use CURLOPT_KEYPASSWD as is */

0 commit comments

Comments
 (0)