summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjan <jan@152afb58-edef-0310-8abb-c4023f1b3aa9>2006-08-03 12:58:26 +0000
committerjan <jan@152afb58-edef-0310-8abb-c4023f1b3aa9>2006-08-03 12:58:26 +0000
commit0c5320c93f17be61505afbf482fa3adec6338cbf (patch)
tree179fc0a0985e3614b7cb5e3403409df7ef6b6586
parenta9a6e15e50deacf1a1c6ab422e0b9cb5e704b13f (diff)
downloadlighttpd-0c5320c93f17be61505afbf482fa3adec6338cbf.tar.gz
updated tests as we support Expect 100 now
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-merge-1.4.x@1247 152afb58-edef-0310-8abb-c4023f1b3aa9
-rwxr-xr-xtests/core.t6
-rwxr-xr-xtests/request.t8
2 files changed, 9 insertions, 5 deletions
diff --git a/tests/core.t b/tests/core.t
index d8187ddb..1fce6ff3 100755
--- a/tests/core.t
+++ b/tests/core.t
@@ -44,21 +44,21 @@ $t->{REQUEST} = ( <<EOF
GET / HTTP/.01
EOF
);
-$t->{RESPONSE} = [ { 'HTTP-Protocol' => 'HTTP/1.0', 'HTTP-Status' => 400 } ];
+$t->{RESPONSE} = [ { 'HTTP-Protocol' => 'HTTP/1.0', 'HTTP-Status' => 505 } ];
ok($tf->handle_http($t) == 0, 'missing major version');
$t->{REQUEST} = ( <<EOF
GET / HTTP/01.
EOF
);
-$t->{RESPONSE} = [ { 'HTTP-Protocol' => 'HTTP/1.0', 'HTTP-Status' => 400 } ];
+$t->{RESPONSE} = [ { 'HTTP-Protocol' => 'HTTP/1.0', 'HTTP-Status' => 505 } ];
ok($tf->handle_http($t) == 0, 'missing minor version');
$t->{REQUEST} = ( <<EOF
GET / HTTP/a.b
EOF
);
-$t->{RESPONSE} = [ { 'HTTP-Protocol' => 'HTTP/1.0', 'HTTP-Status' => 400 } ];
+$t->{RESPONSE} = [ { 'HTTP-Protocol' => 'HTTP/1.0', 'HTTP-Status' => 505 } ];
ok($tf->handle_http($t) == 0, 'strings as version');
$t->{REQUEST} = ( <<EOF
diff --git a/tests/request.t b/tests/request.t
index 7dd4cc67..e4b234a2 100755
--- a/tests/request.t
+++ b/tests/request.t
@@ -96,12 +96,16 @@ $t->{RESPONSE} = [ { 'HTTP-Protocol' => 'HTTP/1.0', 'HTTP-Status' => 404, '-HTTP
ok($tf->handle_http($t) == 0, 'HEAD request, file-not-found, query-string');
$t->{REQUEST} = ( <<EOF
-GET / HTTP/1.1
+POST / HTTP/1.1
Connection: close
+Content-Length: 4
+Host: www.example.org
Expect: 100-continue
+
+1234
EOF
);
-$t->{RESPONSE} = [ { 'HTTP-Protocol' => 'HTTP/1.1', 'HTTP-Status' => 417, '-HTTP-Content' => ''} ];
+$t->{RESPONSE} = [ { 'HTTP-Protocol' => 'HTTP/1.1', 'HTTP-Status' => 100} ];
ok($tf->handle_http($t) == 0, 'Continue, Expect');
## ranges