summaryrefslogtreecommitdiff
path: root/tests/mod-rewrite.t
diff options
context:
space:
mode:
authorJan Kneschke <jan@kneschke.de>2005-08-31 12:55:44 +0000
committerJan Kneschke <jan@kneschke.de>2005-08-31 12:55:44 +0000
commit79886610900e95efcbea3ee73f9f612c7788bbca (patch)
treeb5a2778c47daf99d630675bf8b4d3f8ea40f019e /tests/mod-rewrite.t
parent5c20c426b7e532602613e8796a6f8b55fa31b5ad (diff)
downloadlighttpd-git-79886610900e95efcbea3ee73f9f612c7788bbca.tar.gz
added tests for keep-alive and setenv and passed a ARRAY ref instead of a HASH ref
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-merge-1.4.x@654 152afb58-edef-0310-8abb-c4023f1b3aa9
Diffstat (limited to 'tests/mod-rewrite.t')
-rwxr-xr-xtests/mod-rewrite.t6
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/mod-rewrite.t b/tests/mod-rewrite.t
index 668c1a36..546d1b81 100755
--- a/tests/mod-rewrite.t
+++ b/tests/mod-rewrite.t
@@ -25,7 +25,7 @@ GET /rewrite/foo HTTP/1.0
Host: www.example.org
EOF
);
- $t->{RESPONSE} = ( { 'HTTP-Protocol' => 'HTTP/1.0', 'HTTP-Status' => 200, 'HTTP-Content' => '' } );
+ $t->{RESPONSE} = [ { 'HTTP-Protocol' => 'HTTP/1.0', 'HTTP-Status' => 200, 'HTTP-Content' => '' } ];
ok($tf->handle_http($t) == 0, 'valid request');
$t->{REQUEST} = ( <<EOF
@@ -33,7 +33,7 @@ GET /rewrite/foo?a=b HTTP/1.0
Host: www.example.org
EOF
);
- $t->{RESPONSE} = ( { 'HTTP-Protocol' => 'HTTP/1.0', 'HTTP-Status' => 200, 'HTTP-Content' => 'a=b' } );
+ $t->{RESPONSE} = [ { 'HTTP-Protocol' => 'HTTP/1.0', 'HTTP-Status' => 200, 'HTTP-Content' => 'a=b' } ];
ok($tf->handle_http($t) == 0, 'valid request');
$t->{REQUEST} = ( <<EOF
@@ -41,7 +41,7 @@ GET /rewrite/bar?a=b HTTP/1.0
Host: www.example.org
EOF
);
- $t->{RESPONSE} = ( { 'HTTP-Protocol' => 'HTTP/1.0', 'HTTP-Status' => 200, 'HTTP-Content' => 'bar&a=b' } );
+ $t->{RESPONSE} = [ { 'HTTP-Protocol' => 'HTTP/1.0', 'HTTP-Status' => 200, 'HTTP-Content' => 'bar&a=b' } ];
ok($tf->handle_http($t) == 0, 'valid request');
ok($tf->stop_proc == 0, "Stopping lighttpd");