git@vger.kernel.org mailing list mirror (one of many)
 help / color / mirror / code / Atom feed
* [PATCH] http: support CURLPROXY_HTTPS
@ 2017-12-19 17:24 Wei Shuyu
  2017-12-19 20:59 ` Jonathan Nieder
  0 siblings, 1 reply; 6+ messages in thread
From: Wei Shuyu @ 2017-12-19 17:24 UTC (permalink / raw)
  To: git; +Cc: Wei Shuyu, gitster

HTTP proxy over SSL is supported by curl since 7.52.0.
This is very useful for networks with protocol whitelist.

Signed-off-by: Wei Shuyu <wsy@dogben.com>
---
 http.c | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/http.c b/http.c
index 215bebef1..32d33261c 100644
--- a/http.c
+++ b/http.c
@@ -865,6 +865,11 @@ static CURL *get_curl_handle(void)
 		else if (starts_with(curl_http_proxy, "socks"))
 			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);
-- 
2.15.1


^ permalink raw reply related	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2017-12-20 11:41 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-12-19 17:24 [PATCH] http: support CURLPROXY_HTTPS Wei Shuyu
2017-12-19 20:59 ` Jonathan Nieder
2017-12-19 21:38   ` Junio C Hamano
2017-12-19 21:50     ` Jonathan Nieder
     [not found]   ` <a572179929e666e4e598930ec774c4db@dogben.com>
2017-12-20  2:30     ` Wei Shuyu
2017-12-20 11:41     ` Jeff King

Code repositories for project(s) associated with this public inbox

	https://80x24.org/mirrors/git.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).