зеркало из https://github.com/microsoft/git.git
Merge branch 'nl/http-proxy-auth'
By Nelson Benitez Leon * nl/http-proxy-auth: http: support proxies that require authentication
This commit is contained in:
Коммит
dce89cb6a5
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;
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче