Skip to content

Commit fc4a226

Browse files
committed
Merge branch 'ws/curl-http-proxy-over-https'
Git has been taught to support an https:// URL used for http.proxy when using recent versions of libcurl. * ws/curl-http-proxy-over-https: http: support CURLPROXY_HTTPS
2 parents f53edaf + 82b6803 commit fc4a226

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

http.c

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -865,6 +865,11 @@ static CURL *get_curl_handle(void)
865865
else if (starts_with(curl_http_proxy, "socks"))
866866
curl_easy_setopt(result,
867867
CURLOPT_PROXYTYPE, CURLPROXY_SOCKS4);
868+
#endif
869+
#if LIBCURL_VERSION_NUM >= 0x073400
870+
else if (starts_with(curl_http_proxy, "https"))
871+
curl_easy_setopt(result,
872+
CURLOPT_PROXYTYPE, CURLPROXY_HTTPS);
868873
#endif
869874
if (strstr(curl_http_proxy, "://"))
870875
credential_from_url(&proxy_auth, curl_http_proxy);

0 commit comments

Comments
 (0)