mirror of
https://github.com/monitoring-plugins/monitoring-plugins.git
synced 2026-04-27 17:16:40 -04:00
Add port to Host Header to prevent problems with non default ports (Christophe Dupre #1881898)
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@1944 f882894a-f735-0410-b71e-b25c423dba1c
This commit is contained in:
parent
3d4ca92a6b
commit
118e57b789
1 changed files with 1 additions and 1 deletions
|
|
@ -750,7 +750,7 @@ check_http (void)
|
|||
|
||||
/* optionally send the host header info */
|
||||
if (host_name)
|
||||
asprintf (&buf, "%sHost: %s\r\n", buf, host_name);
|
||||
asprintf (&buf, "%sHost: %s:%d\r\n", buf, host_name, server_port);
|
||||
|
||||
/* optionally send any other header tag */
|
||||
if (http_opt_headers_count) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue