summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthias Eble <psychotrahe@users.sourceforge.net>2008-03-15 00:14:49 (GMT)
committerMatthias Eble <psychotrahe@users.sourceforge.net>2008-03-15 00:14:49 (GMT)
commit118e57b78972c4fbbcd4f45d84af546d7346141d (patch)
tree5db26554a69ba960e71b3cf06550cd97fecaa44f
parent3d4ca92a6b6a99b6c039a5daa2742bf29380dec4 (diff)
downloadmonitoring-plugins-118e57b78972c4fbbcd4f45d84af546d7346141d.tar.gz
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
-rw-r--r--plugins/check_http.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/check_http.c b/plugins/check_http.c
index b3d2ae3..82cd1d9 100644
--- a/plugins/check_http.c
+++ b/plugins/check_http.c
@@ -750,7 +750,7 @@ check_http (void)
750 750
751 /* optionally send the host header info */ 751 /* optionally send the host header info */
752 if (host_name) 752 if (host_name)
753 asprintf (&buf, "%sHost: %s\r\n", buf, host_name); 753 asprintf (&buf, "%sHost: %s:%d\r\n", buf, host_name, server_port);
754 754
755 /* optionally send any other header tag */ 755 /* optionally send any other header tag */
756 if (http_opt_headers_count) { 756 if (http_opt_headers_count) {