diff options
author | Ton Voon <tonvoon@users.sourceforge.net> | 2008-08-25 18:39:27 (GMT) |
---|---|---|
committer | Ton Voon <tonvoon@users.sourceforge.net> | 2008-08-25 18:39:27 (GMT) |
commit | 3b4d0bb2922bf26f43d1b0a9c20f46834dacc8d5 (patch) | |
tree | 9f6eec1d0948f6b60f86944a6f53e10701155889 /plugins/tests/check_http.t | |
parent | bb5ce4be01810300d9dbffc72eb07364dd18e379 (diff) | |
download | monitoring-plugins-3b4d0bb2922bf26f43d1b0a9c20f46834dacc8d5.tar.gz |
Fix HTTP::Daemon::VERSION to get a fixed header size for tests
(Sven Nierlein)
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@2048 f882894a-f735-0410-b71e-b25c423dba1c
Diffstat (limited to 'plugins/tests/check_http.t')
-rwxr-xr-x | plugins/tests/check_http.t | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/plugins/tests/check_http.t b/plugins/tests/check_http.t index a4a45cb..d37856f 100755 --- a/plugins/tests/check_http.t +++ b/plugins/tests/check_http.t | |||
@@ -12,6 +12,9 @@ use HTTP::Daemon; | |||
12 | use HTTP::Status; | 12 | use HTTP::Status; |
13 | use HTTP::Response; | 13 | use HTTP::Response; |
14 | 14 | ||
15 | # set a fixed version, so the header size doesn't vary | ||
16 | $HTTP::Daemon::VERSION = "1.00"; | ||
17 | |||
15 | my $port = 50000 + int(rand(1000)); | 18 | my $port = 50000 + int(rand(1000)); |
16 | 19 | ||
17 | my $pid = fork(); | 20 | my $pid = fork(); |