diff options
author | Jan Kneschke <jan@kneschke.de> | 2005-10-05 10:40:00 +0000 |
---|---|---|
committer | Jan Kneschke <jan@kneschke.de> | 2005-10-05 10:40:00 +0000 |
commit | a77f7a90d87ab1cadff0b4bd798248978e29b0ca (patch) | |
tree | 99185330049dafc67ac3bf31cf7dab08f265dcc4 /tests/request.t | |
parent | 3a6769d19b4338fda2bb7c0aa644a1071d57cf71 (diff) | |
download | lighttpd-git-a77f7a90d87ab1cadff0b4bd798248978e29b0ca.tar.gz |
the range-request options was not handled at all, added test case
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-merge-1.4.x@781 152afb58-edef-0310-8abb-c4023f1b3aa9
Diffstat (limited to 'tests/request.t')
-rwxr-xr-x | tests/request.t | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/tests/request.t b/tests/request.t index 1ea40aa9..40490131 100755 --- a/tests/request.t +++ b/tests/request.t @@ -8,7 +8,7 @@ BEGIN { use strict; use IO::Socket; -use Test::More tests => 28; +use Test::More tests => 29; use LightyTest; my $tf = LightyTest->new(); @@ -292,6 +292,14 @@ EOF $t->{RESPONSE} = [ { 'HTTP-Protocol' => 'HTTP/1.0', 'HTTP-Status' => 400 } ]; ok($tf->handle_http($t) == 0, 'Duplicate If-Modified-Since headers'); +$t->{REQUEST} = ( <<EOF +GET /range.pdf HTTP/1.0 +Range: bytes=0- +EOF + ); +$t->{RESPONSE} = [ { 'HTTP-Protocol' => 'HTTP/1.0', 'HTTP-Status' => 200 } ]; +ok($tf->handle_http($t) == 0, 'GET, Range with range-requests-disabled'); + ok($tf->stop_proc == 0, "Stopping lighttpd"); |