Commit b6fdb3cb by Edward Thomson

http: allow proxies to be specified in common format

The common format for specifying proxy URLs is just 'host:port'. Handle
the common case.
parent 87496557
...@@ -335,7 +335,7 @@ static int lookup_proxy( ...@@ -335,7 +335,7 @@ static int lookup_proxy(
} }
if (!proxy || if (!proxy ||
(error = git_net_url_parse(&transport->proxy.url, proxy)) < 0) (error = git_net_url_parse_http(&transport->proxy.url, proxy)) < 0)
goto done; goto done;
if (!git_net_url_valid(&transport->proxy.url)) { if (!git_net_url_valid(&transport->proxy.url)) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment