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