summaryrefslogtreecommitdiff
path: root/tests/mod-compress.t
diff options
context:
space:
mode:
authorStefan Bühler <stbuehler@web.de>2009-10-11 19:27:55 +0000
committerStefan Bühler <stbuehler@web.de>2009-10-11 19:27:55 +0000
commitd21c645bfa5af432d22e5d54c989b68c20ad48f6 (patch)
treeeb253fc1e1349dd195f841c3f5a680ec6c75b4f3 /tests/mod-compress.t
parentaf3961c9d9939fd23a2637a7c4c1dd8b535908c7 (diff)
downloadlighttpd1.4-d21c645bfa5af432d22e5d54c989b68c20ad48f6.tar.gz
lighttpd1.4-d21c645bfa5af432d22e5d54c989b68c20ad48f6.zip
mod_compress: match partial+full content-type (fixes #1552)
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@2634 152afb58-edef-0310-8abb-c4023f1b3aa9
Diffstat (limited to 'tests/mod-compress.t')
-rwxr-xr-xtests/mod-compress.t6
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/mod-compress.t b/tests/mod-compress.t
index 63f3d2ae..966f6130 100755
--- a/tests/mod-compress.t
+++ b/tests/mod-compress.t
@@ -76,7 +76,7 @@ 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" } ];
+$t->{RESPONSE} = [ { 'HTTP-Protocol' => 'HTTP/1.0', 'HTTP-Status' => 200, '+Vary' => '', '+Content-Encoding' => '', 'Content-Type' => "text/plain; charset=utf-8" } ];
ok($tf->handle_http($t) == 0, 'Content-Type is from the original file');
$t->{REQUEST} = ( <<EOF
@@ -87,7 +87,7 @@ 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" } ];
+$t->{RESPONSE} = [ { 'HTTP-Protocol' => 'HTTP/1.0', 'HTTP-Status' => 200, '+Vary' => '', 'Content-Type' => "text/plain; charset=utf-8" } ];
ok($tf->handle_http($t) == 0, 'Empty Accept-Encoding');
$t->{REQUEST} = ( <<EOF
@@ -96,7 +96,7 @@ Accept-Encoding: bzip2, gzip, deflate
Host: cache.example.org
EOF
);
-$t->{RESPONSE} = [ { 'HTTP-Protocol' => 'HTTP/1.0', 'HTTP-Status' => 200, '+Vary' => '', 'Content-Encoding' => 'gzip', 'Content-Type' => "text/plain" } ];
+$t->{RESPONSE} = [ { 'HTTP-Protocol' => 'HTTP/1.0', 'HTTP-Status' => 200, '+Vary' => '', 'Content-Encoding' => 'gzip', 'Content-Type' => "text/plain; charset=utf-8" } ];
ok($tf->handle_http($t) == 0, 'bzip2 requested but disabled');