Commit ee3d35cf8efb99071a258fbaca5e31e5da3a9be0

Edward Thomson 2019-04-07T19:15:21

http: support https for proxies

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
diff --git a/src/transports/http.c b/src/transports/http.c
index a93d36b..d4156da 100644
--- a/src/transports/http.c
+++ b/src/transports/http.c
@@ -701,15 +701,8 @@ static int load_proxy_config(http_subtransport *t)
 	}
 
 	git_net_url_dispose(&t->proxy.url);
-	if ((error = git_net_url_parse(&t->proxy.url, t->proxy_opts.url)) < 0)
-		return error;
 
-	if (!strcmp(t->proxy.url.scheme, "https")) {
-		git_error_set(GIT_ERROR_NET, "SSL connections to proxy are not supported");
-		return -1;
-	}
-
-	return error;
+	return git_net_url_parse(&t->proxy.url, t->proxy_opts.url);
 }
 
 static int check_certificate(