summaryrefslogtreecommitdiffstats
path: root/web/attachments/264171-check_http-HostHeader.patch
blob: 556e57a67a5cf9e10a945d13056171c7cbaeb06a (plain)
1
2
3
4
5
6
7
8
9
10
11
--- check_http.c.orig	2008-01-29 10:58:01.000000000 -0500
+++ check_http.c	2008-01-29 11:01:47.000000000 -0500
@@ -753,7 +787,7 @@
 
   /* 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) {