diff options
author | Glenn Strauss <gstrauss@gluelogic.com> | 2020-12-23 00:38:43 -0500 |
---|---|---|
committer | Glenn Strauss <gstrauss@gluelogic.com> | 2020-12-23 03:50:13 -0500 |
commit | b598bb53f961cdc5743b034f646c7633806fc832 (patch) | |
tree | ca0e130a6df4ac66f52f208c99ad2f3686e455d9 /tests/request.t | |
parent | 89a3987ce7d6c109269d3370d464994d8feee5cf (diff) | |
download | lighttpd-git-b598bb53f961cdc5743b034f646c7633806fc832.tar.gz |
[tests] remove FastCGI test dependency on PHP
Diffstat (limited to 'tests/request.t')
-rwxr-xr-x | tests/request.t | 9 |
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 |