diff options
author | Stefan Bühler <stbuehler@web.de> | 2009-06-07 19:07:31 +0000 |
---|---|---|
committer | Stefan Bühler <stbuehler@web.de> | 2009-06-07 19:07:31 +0000 |
commit | 57066345e4b50313b20a4b3e9ac94f1b0fb0f979 (patch) | |
tree | 0c1906b5249a777fd84c34385d5a246f4b5a8886 /tests/mod-fastcgi.t | |
parent | b063f0186a526faebb7e1743382ce097ac168a87 (diff) | |
download | lighttpd-git-57066345e4b50313b20a4b3e9ac94f1b0fb0f979.tar.gz |
Workaround broken operating systems: check for trailing '/' in filenames (fixes #1989)
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@2510 152afb58-edef-0310-8abb-c4023f1b3aa9
Diffstat (limited to 'tests/mod-fastcgi.t')
-rwxr-xr-x | tests/mod-fastcgi.t | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/tests/mod-fastcgi.t b/tests/mod-fastcgi.t index e5057bd9..b5f74d64 100755 --- a/tests/mod-fastcgi.t +++ b/tests/mod-fastcgi.t @@ -7,7 +7,7 @@ BEGIN { } use strict; -use Test::More tests => 52; +use Test::More tests => 53; use LightyTest; my $tf = LightyTest->new(); @@ -25,7 +25,7 @@ SKIP: { } SKIP: { - skip "no PHP running on port 1026", 29 unless $tf->listening_on(1026); + skip "no PHP running on port 1026", 30 unless $tf->listening_on(1026); ok($tf->start_proc == 0, "Starting lighttpd") or goto cleanup; @@ -62,6 +62,14 @@ EOF ok($tf->handle_http($t) == 0, 'Status + Location via FastCGI'); $t->{REQUEST} = ( <<EOF +GET /redirect.php/ HTTP/1.0 +Host: www.example.org +EOF + ); + $t->{RESPONSE} = [ { 'HTTP-Protocol' => 'HTTP/1.0', 'HTTP-Status' => 302, 'Location' => 'http://www.example.org:2048/' } ]; + ok($tf->handle_http($t) == 0, 'Trailing slash as path-info (#1989: workaround broken operating systems)'); + + $t->{REQUEST} = ( <<EOF GET /get-server-env.php?env=PHP_SELF HTTP/1.0 Host: www.example.org EOF |