X-Git-Url: http://git.osdn.net/view?a=blobdiff_plain;f=http.c;h=32d33261c98cce2d5fd25c07a503654a3d5d2e52;hb=29f90338df0912d254f5960fe1509e9e30f05a64;hp=215bebef1bfb935355a765027fc8605fccbc3d1b;hpb=4c6dad0059b2b5d1ea996ccf67f93224955b07b4;p=git-core%2Fgit.git diff --git a/http.c b/http.c index 215bebef1..32d33261c 100644 --- a/http.c +++ b/http.c @@ -866,6 +866,11 @@ static CURL *get_curl_handle(void) curl_easy_setopt(result, CURLOPT_PROXYTYPE, CURLPROXY_SOCKS4); #endif +#if LIBCURL_VERSION_NUM >= 0x073400 + else if (starts_with(curl_http_proxy, "https")) + curl_easy_setopt(result, + CURLOPT_PROXYTYPE, CURLPROXY_HTTPS); +#endif if (strstr(curl_http_proxy, "://")) credential_from_url(&proxy_auth, curl_http_proxy); else {