From 118e57b78972c4fbbcd4f45d84af546d7346141d Mon Sep 17 00:00:00 2001 From: Matthias Eble Date: Sat, 15 Mar 2008 00:14:49 +0000 Subject: 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 --- plugins/check_http.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'plugins') diff --git a/plugins/check_http.c b/plugins/check_http.c index b3d2ae39..82cd1d9c 100644 --- a/plugins/check_http.c +++ b/plugins/check_http.c @@ -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) { -- cgit v1.2.3-74-g34f1