summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorEdward Thomson <ethomson@edwardthomson.com>2019-04-07 19:15:21 +0900
committerEdward Thomson <ethomson@edwardthomson.com>2019-06-10 19:58:22 +0100
commitee3d35cf8efb99071a258fbaca5e31e5da3a9be0 (patch)
tree2c2b67e943922bd5b502148fe1d524a8dcd66052 /src
parent3d11b6c5a283a4c83c208186491d88ddd60b10cf (diff)
downloadlibgit2-ee3d35cf8efb99071a258fbaca5e31e5da3a9be0.tar.gz
http: support https for proxies
Diffstat (limited to 'src')
-rw-r--r--src/transports/http.c9
1 files changed, 1 insertions, 8 deletions
diff --git a/src/transports/http.c b/src/transports/http.c
index a93d36b9e..d4156da66 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(