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-c4023f1b3aa9svn/tags/lighttpd-1.4.6
parent
54dea53fdf
commit
cebb64e47b
|
@ -0,0 +1 @@
|
|||
<!--#exec cmd="expr 1 + 1"-->
|
|
@ -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");
|
||||
|
||||
|
|
Loading…
Reference in New Issue