Radish alpha
H
rad:z3QDZAW2FAfuLvihrhiyDC9fAD8G9
HardenedBSD Package Manager
Radicle
Git
curl: always allow any supported authentication
Baptiste Daroussin committed 2 years ago
commit f6dba9cc3a6845bb842725e8c24e988e7af714e6
parent 1b51004
1 file changed +1 -1
modified libpkg/fetch_libcurl.c
@@ -442,8 +442,8 @@ retry:
		pkg_debug(1, "CURL> attempting to fetch from %s, left retry %ld\n",
				lurl, retry);
	}
+
	curl_easy_setopt(cl, CURLOPT_HTTPAUTH, (long)CURLAUTH_ANY);
	if (userpasswd != NULL) {
-
		curl_easy_setopt(cl, CURLOPT_HTTPAUTH, (long)CURLAUTH_ANY);
		curl_easy_setopt(cl, CURLOPT_USERPWD, userpasswd);
	}
	if (http_proxy != NULL)