X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=http.c;h=f3f83d70cd2e13a774d208206af20181dd39d8af;hb=HEAD;hp=0ffd79cd81ba3e722dcdbf4c20469fa551ce9d80;hpb=26f1e9bd68b6eb32d1376ae392354551c5ae17bc;p=git.git diff --git a/http.c b/http.c index 0ffd79cd8..f3f83d70c 100644 --- a/http.c +++ b/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; } @@ -827,7 +829,7 @@ int http_get_strbuf(const char *url, struct strbuf *result, int options) } /* - * Downloads an url and stores the result in the given file. + * Downloads a URL and stores the result in the given file. * * If a previous interrupted download is detected (i.e. a previous temporary * file is still around) the download is resumed.