summaryrefslogtreecommitdiff
path: root/tests/mod-compress.t
diff options
context:
space:
mode:
authorJan Kneschke <jan@kneschke.de>2005-08-18 09:28:11 +0000
committerJan Kneschke <jan@kneschke.de>2005-08-18 09:28:11 +0000
commit3a754cb06ad9c0368cc641823326183078dccb0a (patch)
treeee313d17de9f5d73cf952c39fafe2906cef45f2b /tests/mod-compress.t
parent172340e22f7ff1c2d78d07a8fcaa6ae53afd1ee8 (diff)
downloadlighttpd1.4-3a754cb06ad9c0368cc641823326183078dccb0a.tar.gz
lighttpd1.4-3a754cb06ad9c0368cc641823326183078dccb0a.zip
check that the content-type is the CT of the original file
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-merge-1.4.x@570 152afb58-edef-0310-8abb-c4023f1b3aa9
Diffstat (limited to 'tests/mod-compress.t')
-rwxr-xr-xtests/mod-compress.t11
1 files changed, 10 insertions, 1 deletions
diff --git a/tests/mod-compress.t b/tests/mod-compress.t
index ce968c76..41b2299e 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 => 6;
+use Test::More tests => 7;
use LightyTest;
my $tf = LightyTest->new();
@@ -48,4 +48,13 @@ EOF
$t->{RESPONSE} = ( { 'HTTP-Protocol' => 'HTTP/1.0', 'HTTP-Status' => 200, '+Vary' => '', '+Content-Encoding' => '' } );
ok($tf->handle_http($t) == 0, 'gzip, deflate - Content-Length and Content-Encoding is set');
+$t->{REQUEST} = ( <<EOF
+GET /index.txt HTTP/1.0
+Accept-Encoding: gzip, deflate
+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');
+
+
ok($tf->stop_proc == 0, "Stopping lighttpd");