Skip to content

Commit 90eea88

Browse files
committed
Merge branch 'tc/missing-http-proxyauth'
We did not check the curl library version before using CURLOPT_PROXYAUTH feature that may not exist. * tc/missing-http-proxyauth: http: support curl < 7.10.7
2 parents e2a318f + 1c2dbf2 commit 90eea88

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

http.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -405,7 +405,9 @@ static CURL *get_curl_handle(void)
405405

406406
if (curl_http_proxy) {
407407
curl_easy_setopt(result, CURLOPT_PROXY, curl_http_proxy);
408+
#if LIBCURL_VERSION_NUM >= 0x070a07
408409
curl_easy_setopt(result, CURLOPT_PROXYAUTH, CURLAUTH_ANY);
410+
#endif
409411
}
410412

411413
set_curl_keepalive(result);

0 commit comments

Comments
 (0)