From: simon.richter@hogyros.de Date: Fri, 13 May 2022 07:04:16 GMT Subject: [RFC PATCH 3/3] Allow empty user name in HTTP authentication Message-ID: <20220513070416.37235-4-Simon.Richter@hogyros.de> In-Reply-To: <20220513070416.37235-1-Simon.Richter@hogyros.de> From: Simon Richter When using a Personal Access Token in Microsoft DevOps server, the username can be empty, so users might expect that pressing return on an username prompt will work. --- http.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/http.c b/http.c index c5af90b1b8..dc71fb75ea 100644 --- a/http.c +++ b/http.c @@ -433,7 +433,7 @@ static int curl_empty_auth_enabled(void) static void init_curl_http_auth(CURL *result) { - if (!http_auth.username || !*http_auth.username) { + if (!http_auth.username) { if (curl_empty_auth_enabled()) curl_easy_setopt(result, CURLOPT_USERPWD, ":"); return; -- 2.30.2