Code

Fix HTTP::Daemon::VERSION to get a fixed header size for tests
authorTon Voon <tonvoon@users.sourceforge.net>
Mon, 25 Aug 2008 18:39:27 +0000 (18:39 +0000)
committerTon Voon <tonvoon@users.sourceforge.net>
Mon, 25 Aug 2008 18:39:27 +0000 (18:39 +0000)
(Sven Nierlein)

git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@2048 f882894a-f735-0410-b71e-b25c423dba1c

plugins/tests/check_http.t

index a4a45cb8f2428c3ebb2005d55a2620b77f205664..d37856f83cbc2fb903262c620af6130cbe84126f 100755 (executable)
@@ -12,6 +12,9 @@ use HTTP::Daemon;
 use HTTP::Status;
 use HTTP::Response;
 
+# set a fixed version, so the header size doesn't vary
+$HTTP::Daemon::VERSION = "1.00";
+
 my $port = 50000 + int(rand(1000));
 
 my $pid = fork();