aboutsummaryrefslogtreecommitdiff
path: root/plugins
diff options
context:
space:
mode:
Diffstat (limited to 'plugins')
-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 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) {