Skip to content

Commit c185936

Browse files
committed
Merge branch 'et/http-proxyauth' into maint
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 342c14d + 5841520 commit c185936

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
@@ -406,10 +406,10 @@ static CURL *get_curl_handle(void)
406406

407407
if (curl_http_proxy) {
408408
curl_easy_setopt(result, CURLOPT_PROXY, curl_http_proxy);
409+
}
409410
#if LIBCURL_VERSION_NUM >= 0x070a07
410-
curl_easy_setopt(result, CURLOPT_PROXYAUTH, CURLAUTH_ANY);
411+
curl_easy_setopt(result, CURLOPT_PROXYAUTH, CURLAUTH_ANY);
411412
#endif
412-
}
413413

414414
set_curl_keepalive(result);
415415

0 commit comments

Comments
 (0)