summaryrefslogtreecommitdiff
path: root/tests/mod-compress.t
diff options
context:
space:
mode:
authorJan Kneschke <jan@kneschke.de>2006-02-01 11:35:08 +0000
committerJan Kneschke <jan@kneschke.de>2006-02-01 11:35:08 +0000
commitbd8e6919d29ea6186bcc3c169079d2af44746821 (patch)
tree19cc3df7f91afcfb029bdf6bdc2a5c6c06756ce3 /tests/mod-compress.t
parent433f1883ac8af9f4b077eae9565e285d8f200a5b (diff)
downloadlighttpd1.4-bd8e6919d29ea6186bcc3c169079d2af44746821.tar.gz
lighttpd1.4-bd8e6919d29ea6186bcc3c169079d2af44746821.zip
added tests for possible crashes
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-merge-1.4.x@974 152afb58-edef-0310-8abb-c4023f1b3aa9
Diffstat (limited to 'tests/mod-compress.t')
-rwxr-xr-xtests/mod-compress.t14
1 files changed, 13 insertions, 1 deletions
diff --git a/tests/mod-compress.t b/tests/mod-compress.t
index 3f1462ab..e4f110f4 100755
--- a/tests/mod-compress.t
+++ b/tests/mod-compress.t
@@ -8,7 +8,7 @@ BEGIN {
use strict;
use IO::Socket;
-use Test::More tests => 9;
+use Test::More tests => 10;
use LightyTest;
my $tf = LightyTest->new();
@@ -77,4 +77,16 @@ EOF
$t->{RESPONSE} = [ { 'HTTP-Protocol' => 'HTTP/1.0', 'HTTP-Status' => 200, '+Vary' => '', '+Content-Encoding' => '', 'Content-Type' => "text/plain" } ];
ok($tf->handle_http($t) == 0, 'Content-Type is from the original file');
+$t->{REQUEST} = ( <<EOF
+GET /index.txt HTTP/1.0
+Accept-encoding:
+X-Accept-encoding: x-i2p-gzip;q=1.0, identity;q=0.5, deflate;q=0, gzip;q=0, *;q=0
+User-Agent: MYOB/6.66 (AN/ON)
+Connection: close
+EOF
+ );
+$t->{RESPONSE} = [ { 'HTTP-Protocol' => 'HTTP/1.0', 'HTTP-Status' => 200, '+Vary' => '', 'Content-Type' => "text/plain" } ];
+ok($tf->handle_http($t) == 0, 'Empty Accept-Encoding');
+
+
ok($tf->stop_proc == 0, "Stopping lighttpd");