[git] GnuPG - branch, master, updated. gnupg-2.1.18-100-gcd32ebd
by Werner Koch
cvs at cvs.gnupg.org
Fri Feb 17 22:02:43 CET 2017
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "The GNU Privacy Guard".
The branch, master has been updated
via cd32ebd152a522e362469ab969d91f8d49f28a60 (commit)
from f07811ee2c0a8044551e2ec063eda61cff7f6e39 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
commit cd32ebd152a522e362469ab969d91f8d49f28a60
Author: Werner Koch <wk at gnupg.org>
Date: Fri Feb 17 21:59:45 2017 +0100
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 <wk at gnupg.org>
diff --git a/dirmngr/http.c b/dirmngr/http.c
index 0889cb1..0f6cac6 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);
-----------------------------------------------------------------------
Summary of changes:
dirmngr/http.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
hooks/post-receive
--
The GNU Privacy Guard
http://git.gnupg.org
More information about the Gnupg-commits
mailing list