[Nagiosplug-checkins] nagiosplug/plugins/t check_tcp.t,1.5,1.6

Thomas Guyot dermoth at users.sourceforge.net
Fri May 18 09:18:01 CEST 2007


Update of /cvsroot/nagiosplug/nagiosplug/plugins/t
In directory sc8-pr-cvs16:/tmp/cvs-serv8807/t

Modified Files:
	check_tcp.t 
Log Message:
Make check_tcp.t compatible with picky web servers.


Index: check_tcp.t
===================================================================
RCS file: /cvsroot/nagiosplug/nagiosplug/plugins/t/check_tcp.t,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -d -r1.5 -r1.6
--- check_tcp.t	14 Feb 2007 10:11:07 -0000	1.5
+++ check_tcp.t	18 May 2007 07:17:59 -0000	1.6
@@ -34,7 +34,7 @@
 
 # Need the \r\n to make it more standards compliant with web servers. Need the various quotes
 # so that perl doesn't interpret the \r\n and is passed onto command line correctly
-$t += checkCmd( "./check_tcp $host_tcp_http      -p 80 -E -s ".'"GET /\r\n\r\n"'." -e 'ThisShouldntMatch' -j", 1, $failedExpect );
+$t += checkCmd( "./check_tcp $host_tcp_http      -p 80 -E -s ".'"GET / HTTP/1.1\r\n\r\n"'." -e 'ThisShouldntMatch' -j", 1, $failedExpect );
 
 exit(0) if defined($Test::Harness::VERSION);
 exit($tests - $t);





More information about the Commits mailing list