[Nagiosplug-checkins] SF.net SVN: nagiosplug: [1944] nagiosplug/trunk/plugins/check_http.c

psychotrahe at users.sourceforge.net psychotrahe at users.sourceforge.net
Sat Mar 15 01:14:49 CET 2008


Revision: 1944
          http://nagiosplug.svn.sourceforge.net/nagiosplug/?rev=1944&view=rev
Author:   psychotrahe
Date:     2008-03-14 17:14:49 -0700 (Fri, 14 Mar 2008)

Log Message:
-----------
Add port to Host Header to prevent problems with non default ports (Christophe Dupre #1881898)

Modified Paths:
--------------
    nagiosplug/trunk/plugins/check_http.c

Modified: nagiosplug/trunk/plugins/check_http.c
===================================================================
--- nagiosplug/trunk/plugins/check_http.c	2008-03-14 23:47:41 UTC (rev 1943)
+++ nagiosplug/trunk/plugins/check_http.c	2008-03-15 00:14:49 UTC (rev 1944)
@@ -750,7 +750,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) {


This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.




More information about the Commits mailing list