mirror of
git://git.gnupg.org/gnupg.git
synced 2025-04-17 15:44:34 +02:00
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@gnupg.org>
This commit is contained in:
parent
f07811ee2c
commit
cd32ebd152
@ -1942,7 +1942,7 @@ send_request (http_t hd, const char *httphost, const char *auth,
|
|||||||
{
|
{
|
||||||
char portstr[35];
|
char portstr[35];
|
||||||
|
|
||||||
if (port == 80)
|
if (port == (hd->uri->use_tls? 443 : 80))
|
||||||
*portstr = 0;
|
*portstr = 0;
|
||||||
else
|
else
|
||||||
snprintf (portstr, sizeof portstr, ":%u", port);
|
snprintf (portstr, sizeof portstr, ":%u", port);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user