diff options
author | Werner Koch <[email protected]> | 2017-02-17 20:59:45 +0000 |
---|---|---|
committer | Werner Koch <[email protected]> | 2017-02-17 20:59:45 +0000 |
commit | cd32ebd152a522e362469ab969d91f8d49f28a60 (patch) | |
tree | d7931873aa04fb0dbbaecef515626a470f89b8d8 /dirmngr/http.c | |
parent | dirmngr: Add option --no-crl to the VALIDATE cmd. (diff) | |
download | gnupg-cd32ebd152a522e362469ab969d91f8d49f28a60.tar.gz gnupg-cd32ebd152a522e362469ab969d91f8d49f28a60.zip |
dirmngr: Strip the default https port from the Host: header.
* dirmngr/http.c (send_request): Strip the default https port.
--
GnuPG-bug-id: 2965
Signed-off-by: Werner Koch <[email protected]>
Diffstat (limited to 'dirmngr/http.c')
-rw-r--r-- | dirmngr/http.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/dirmngr/http.c b/dirmngr/http.c index 0889cb1ee..0f6cac652 100644 --- a/dirmngr/http.c +++ b/dirmngr/http.c @@ -1942,7 +1942,7 @@ send_request (http_t hd, const char *httphost, const char *auth, { char portstr[35]; - if (port == 80) + if (port == (hd->uri->use_tls? 443 : 80)) *portstr = 0; else snprintf (portstr, sizeof portstr, ":%u", port); |