Skip to content

Commit

Permalink
Merge branch 'nl/http-proxy-auth'
Browse files Browse the repository at this point in the history
By Nelson Benitez Leon
* nl/http-proxy-auth:
  http: support proxies that require authentication
  • Loading branch information
Junio C Hamano committed Mar 6, 2012
2 parents 4ebed61 + dd61399 commit dce89cb
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion http.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit dce89cb

Please sign in to comment.