summaryrefslogtreecommitdiff
path: root/tests/request.t
diff options
context:
space:
mode:
authorGlenn Strauss <gstrauss@gluelogic.com>2020-12-23 00:38:43 -0500
committerGlenn Strauss <gstrauss@gluelogic.com>2020-12-23 03:50:13 -0500
commitb598bb53f961cdc5743b034f646c7633806fc832 (patch)
treeca0e130a6df4ac66f52f208c99ad2f3686e455d9 /tests/request.t
parent89a3987ce7d6c109269d3370d464994d8feee5cf (diff)
downloadlighttpd-git-b598bb53f961cdc5743b034f646c7633806fc832.tar.gz
[tests] remove FastCGI test dependency on PHP
Diffstat (limited to 'tests/request.t')
-rwxr-xr-xtests/request.t9
1 files changed, 8 insertions, 1 deletions
diff --git a/tests/request.t b/tests/request.t
index ba001ad8..2f5ebc8b 100755
--- a/tests/request.t
+++ b/tests/request.t
@@ -8,7 +8,7 @@ BEGIN {
use strict;
use IO::Socket;
-use Test::More tests => 52;
+use Test::More tests => 53;
use LightyTest;
my $tf = LightyTest->new();
@@ -524,6 +524,13 @@ EOF
$t->{RESPONSE} = [ { 'HTTP-Protocol' => 'HTTP/1.0', 'HTTP-Status' => 403 } ];
ok($tf->handle_http($t) == 0, 'static file with forbidden pathinfo');
+$t->{REQUEST} = ( <<EOF
+GET /www/abc/def HTTP/1.0
+EOF
+ );
+$t->{RESPONSE} = [ { 'HTTP-Protocol' => 'HTTP/1.0', 'HTTP-Status' => 404 } ];
+ok($tf->handle_http($t) == 0, 'pathinfo on a directory');
+
$t->{REQUEST} = ( <<EOF
GET /12345.txt HTTP/1.1