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:
Andre Heinecke 2015-09-25 11:43:16 +02:00 committed by Werner Koch
parent 2eee29253d
commit ea079d283d
No known key found for this signature in database
GPG Key ID: E3FDFF218E45B72B
1 changed files with 1 additions and 1 deletions

View File

@ -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))
{