Bug #230 ยป lighttpd-mod-compress-subdir-tests.patch
lighttpd-1.4.9/tests/mod-compress.t 2006-02-10 19:41:53.000000000 +0100 | ||
---|---|---|
use strict;
|
||
use IO::Socket;
|
||
use Test::More tests => 9;
|
||
use Test::More tests => 11;
|
||
use LightyTest;
|
||
my $tf = LightyTest->new();
|
||
... | ... | |
$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 /indexfile/data.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, 'Cache content delivered from subdirectory');
|
||
$t->{REQUEST} = ( <<EOF
|
||
GET /aliasdir/data.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, 'Cache content delivered from aliased subdirectory');
|
||
ok($tf->stop_proc == 0, "Stopping lighttpd");
|
||
-- orig/lighttpd-1.4.9/tests/lighttpd.conf 2005-10-05 10:50:51.000000000 +0200
|
||
++ lighttpd-1.4.9/tests/lighttpd.conf 2006-02-10 19:45:57.000000000 +0100
|
||
... | ... | |
url.access-deny = ( "~", ".inc")
|
||
alias.url = ( "/aliasdir/" => "@SRCDIR@/tmp/lighttpd/servers/www.example.org/pages/indexfile/" )
|
||
url.rewrite = ( "^/rewrite/foo($|\?.+)" => "/indexfile/rewrite.php$1",
|
||
"^/rewrite/bar(?:$|\?(.+))" => "/indexfile/rewrite.php?bar&$1" )
|
||
lighttpd-1.4.9/tests/docroot/www/indexfile/data.txt 2006-02-10 19:00:08.000000000 +0100 | ||
---|---|---|
subdir
|
lighttpd-1.4.9/tests/docroot/www/indexfile/Makefile.am 2006-02-10 19:32:44.000000000 +0100 | ||
---|---|---|
EXTRA_DIST=index.php return-404.php rewrite.php
|
||
EXTRA_DIST=index.php return-404.php rewrite.php data.txt
|