mirror of
https://github.com/git/git.git
synced 2026-02-23 00:02:25 +00:00
Merge branch 'nl/http-proxy-auth' into next
* nl/http-proxy-auth: http: support proxies that require authentication
This commit is contained in:
4
http.c
4
http.c
@@ -295,8 +295,10 @@ static CURL *get_curl_handle(void)
|
||||
if (curl_ftp_no_epsv)
|
||||
curl_easy_setopt(result, CURLOPT_FTP_USE_EPSV, 0);
|
||||
|
||||
if (curl_http_proxy)
|
||||
if (curl_http_proxy) {
|
||||
curl_easy_setopt(result, CURLOPT_PROXY, curl_http_proxy);
|
||||
curl_easy_setopt(result, CURLOPT_PROXYAUTH, CURLAUTH_ANY);
|
||||
}
|
||||
|
||||
return result;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user