Skip to content

Commit 7a901fb

Browse files
committed
http: allow proxies to be specified in common format
The common format for specifying proxy URLs is just 'host:port'. Handle the common case.
1 parent 1d7d6ff commit 7a901fb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/libgit2/transports/http.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -335,7 +335,7 @@ static int lookup_proxy(
335335
}
336336

337337
if (!proxy ||
338-
(error = git_net_url_parse(&transport->proxy.url, proxy)) < 0)
338+
(error = git_net_url_parse_http(&transport->proxy.url, proxy)) < 0)
339339
goto done;
340340

341341
if (!git_net_url_valid(&transport->proxy.url)) {

0 commit comments

Comments
 (0)