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

[email protected]
Newsgroups gmane.network.nagios.plugins.cvs
Message-ID <[email protected]>
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.

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.