From a77f7a90d87ab1cadff0b4bd798248978e29b0ca Mon Sep 17 00:00:00 2001 From: Jan Kneschke Date: Wed, 5 Oct 2005 10:40:00 +0000 Subject: 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 --- tests/request.t | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'tests/request.t') 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} = ( <{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"); -- cgit v1.2.1