added a ssi check for the endless loop we had

git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-merge-1.4.x@752 152afb58-edef-0310-8abb-c4023f1b3aa9
This commit is contained in:
Jan Kneschke 2005-09-29 13:29:44 +00:00
parent 54dea53fdf
commit cebb64e47b
2 changed files with 12 additions and 1 deletions

View File

@ -0,0 +1 @@
<!--#exec cmd="expr 1 + 1"-->

View File

@ -8,7 +8,7 @@ BEGIN {
use strict;
use IO::Socket;
use Test::More tests => 3;
use Test::More tests => 4;
use LightyTest;
my $tf = LightyTest->new();
@ -25,5 +25,15 @@ EOF
$t->{RESPONSE} = [ { 'HTTP-Protocol' => 'HTTP/1.0', 'HTTP-Status' => 200, 'HTTP-Content' => "/ssi.shtml\n" } ];
ok($tf->handle_http($t) == 0, 'ssi - echo ');
## bug #280
$t->{REQUEST} = ( <<EOF
GET /exec-date.shtml HTTP/1.0
EOF
);
$t->{RESPONSE} = [ { 'HTTP-Protocol' => 'HTTP/1.0', 'HTTP-Status' => 200, 'HTTP-Content' => "2\n\n" } ];
ok($tf->handle_http($t) == 0, 'ssi - echo ');
ok($tf->stop_proc == 0, "Stopping lighttpd");