Skip to content

Commit 0e521a4

Browse files
committed
Merge branch 'et/http-proxyauth'
We used to ask libCURL to use the most secure authentication method available when talking to an HTTP proxy only when we were told to talk to one via configuration variables. We now ask libCURL to always use the most secure authentication method, because the user can tell libCURL to use an HTTP proxy via an environment variable without using configuration variables. * et/http-proxyauth: http: always use any proxy auth method available
2 parents acf7189 + 5841520 commit 0e521a4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

http.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -416,10 +416,10 @@ static CURL *get_curl_handle(void)
416416

417417
if (curl_http_proxy) {
418418
curl_easy_setopt(result, CURLOPT_PROXY, curl_http_proxy);
419+
}
419420
#if LIBCURL_VERSION_NUM >= 0x070a07
420-
curl_easy_setopt(result, CURLOPT_PROXYAUTH, CURLAUTH_ANY);
421+
curl_easy_setopt(result, CURLOPT_PROXYAUTH, CURLAUTH_ANY);
421422
#endif
422-
}
423423

424424
set_curl_keepalive(result);
425425

0 commit comments

Comments
 (0)