diff options
author | Andre Heinecke <[email protected]> | 2015-09-25 09:43:16 +0000 |
---|---|---|
committer | Werner Koch <[email protected]> | 2015-10-08 17:07:58 +0000 |
commit | ea079d283de6bf4ac70d7530fac70938e7c5e8f5 (patch) | |
tree | b631e1e0a0f3a5cd095e6a5125c05c8e806588be | |
parent | speedo: Add a w32-release target. (diff) | |
download | gnupg-ea079d283de6bf4ac70d7530fac70938e7c5e8f5.tar.gz gnupg-ea079d283de6bf4ac70d7530fac70938e7c5e8f5.zip |
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
Diffstat (limited to '')
-rw-r--r-- | common/http.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/common/http.c b/common/http.c index be5bd308a..edd8a6d27 100644 --- a/common/http.c +++ b/common/http.c @@ -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)) { |