Skip to content

Commit dce89cb

Browse files
committed
Merge branch 'nl/http-proxy-auth'
By Nelson Benitez Leon * nl/http-proxy-auth: http: support proxies that require authentication
2 parents 4ebed61 + dd61399 commit dce89cb

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

http.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -295,8 +295,10 @@ static CURL *get_curl_handle(void)
295295
if (curl_ftp_no_epsv)
296296
curl_easy_setopt(result, CURLOPT_FTP_USE_EPSV, 0);
297297

298-
if (curl_http_proxy)
298+
if (curl_http_proxy) {
299299
curl_easy_setopt(result, CURLOPT_PROXY, curl_http_proxy);
300+
curl_easy_setopt(result, CURLOPT_PROXYAUTH, CURLAUTH_ANY);
301+
}
300302

301303
return result;
302304
}

0 commit comments

Comments
 (0)