mirror of
git://git.gnupg.org/gnupg.git
synced 2025-01-21 14:47:03 +01:00
dirmngr: Default to http protocol for http-proxy
* common/http.c (send_request): Fix handling for hostname:port string. -- The first pass to parse_uri should already do a scheme check so that a hostname:port string is detected as invlaid and the retry code actually takes effect and adds a http:// GnuPG-bug-id: 2109
This commit is contained in:
parent
2eee29253d
commit
ea079d283d
@ -1513,7 +1513,7 @@ send_request (http_t hd, const char *httphost, const char *auth,
|
||||
if (proxy)
|
||||
http_proxy = proxy;
|
||||
|
||||
err = parse_uri (&uri, http_proxy, 1, 0);
|
||||
err = parse_uri (&uri, http_proxy, 0, 0);
|
||||
if (gpg_err_code (err) == GPG_ERR_INV_URI
|
||||
&& is_hostname_port (http_proxy))
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user