Skip to content

Commit 38a3a37

Browse files
committed
winhttp: use new http-style url parser for proxies
1 parent 00c62ab commit 38a3a37

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/libgit2/transports/winhttp.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -443,7 +443,7 @@ static int winhttp_stream_connect(winhttp_stream *s)
443443

444444
git_net_url_dispose(&t->proxy.url);
445445

446-
if ((error = git_net_url_parse(&t->proxy.url, proxy_url)) < 0)
446+
if ((error = git_net_url_parse_http(&t->proxy.url, proxy_url)) < 0)
447447
goto on_error;
448448

449449
if (!git_net_url_valid(&t->proxy.url)) {

0 commit comments

Comments
 (0)