summaryrefslogtreecommitdiff
path: root/tests/mod-secdownload.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-secdownload.t
parent5c20c426b7e532602613e8796a6f8b55fa31b5ad (diff)
downloadlighttpd1.4-79886610900e95efcbea3ee73f9f612c7788bbca.tar.gz
lighttpd1.4-79886610900e95efcbea3ee73f9f612c7788bbca.zip
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-secdownload.t')
-rwxr-xr-xtests/mod-secdownload.t10
1 files changed, 5 insertions, 5 deletions
diff --git a/tests/mod-secdownload.t b/tests/mod-secdownload.t
index 46cfc7b3..cd13a139 100755
--- a/tests/mod-secdownload.t
+++ b/tests/mod-secdownload.t
@@ -27,7 +27,7 @@ GET /sec/$m/$thex$f HTTP/1.0
Host: vvv.example.org
EOF
);
-$t->{RESPONSE} = ( { 'HTTP-Protocol' => 'HTTP/1.0', 'HTTP-Status' => 200 } );
+$t->{RESPONSE} = [ { 'HTTP-Protocol' => 'HTTP/1.0', 'HTTP-Status' => 200 } ];
ok($tf->handle_http($t) == 0, 'secdownload');
@@ -39,7 +39,7 @@ GET /sec/$m/$thex$f HTTP/1.0
Host: vvv.example.org
EOF
);
-$t->{RESPONSE} = ( { 'HTTP-Protocol' => 'HTTP/1.0', 'HTTP-Status' => 408 } );
+$t->{RESPONSE} = [ { 'HTTP-Protocol' => 'HTTP/1.0', 'HTTP-Status' => 408 } ];
ok($tf->handle_http($t) == 0, 'secdownload - timeout');
@@ -48,7 +48,7 @@ GET /sec$f HTTP/1.0
Host: vvv.example.org
EOF
);
-$t->{RESPONSE} = ( { 'HTTP-Protocol' => 'HTTP/1.0', 'HTTP-Status' => 404 } );
+$t->{RESPONSE} = [ { 'HTTP-Protocol' => 'HTTP/1.0', 'HTTP-Status' => 404 } ];
ok($tf->handle_http($t) == 0, 'secdownload - direct access');
@@ -57,7 +57,7 @@ GET $f HTTP/1.0
Host: www.example.org
EOF
);
-$t->{RESPONSE} = ( { 'HTTP-Protocol' => 'HTTP/1.0', 'HTTP-Status' => 200 } );
+$t->{RESPONSE} = [ { 'HTTP-Protocol' => 'HTTP/1.0', 'HTTP-Status' => 200 } ];
ok($tf->handle_http($t) == 0, 'secdownload - conditional access');
@@ -71,7 +71,7 @@ GET /sec/$m/$thex$f HTTP/1.0
Host: vvv.example.org
EOF
);
-$t->{RESPONSE} = ( { 'HTTP-Protocol' => 'HTTP/1.0', 'HTTP-Status' => 404 } );
+$t->{RESPONSE} = [ { 'HTTP-Protocol' => 'HTTP/1.0', 'HTTP-Status' => 404 } ];
ok($tf->handle_http($t) == 0, 'secdownload - timeout');