Browse Source

[tests] remove unused file depending on CGI.pm

lighttpd tests do not depend on CGI.pm.

remove *unused* file tests/docroot/www/404.fcgi
which used CGI::Fast, which depends on CGI.pm.
personal/stbuehler/mod-csrf
Glenn Strauss 4 years ago
parent
commit
739ccb5de0
  1. 27
      tests/docroot/www/404.fcgi
  2. 1
      tests/docroot/www/Makefile.am

27
tests/docroot/www/404.fcgi

@ -1,27 +0,0 @@
#!/usr/bin/env perl
use CGI::Fast qw(:standard);
while (new CGI::Fast) {
my $request_uri = $ENV{'REQUEST_URI'};
print (STDERR "REQUEST_URI: $request_uri\n");
if ($request_uri =~ m/^\/dynamic\/200\// ) {
print header ( -status => 200,
-type => 'text/plain' );
print ("found here\n");
}
elsif ($request_uri =~ m|^/dynamic/302/| ) {
print header( -status=>302,
-location => 'http://www.example.org/');
}
elsif ($request_uri =~ m/^\/dynamic\/404\// ) {
print header ( -status => 404
-type => 'text/plain' );
print ("Not found here\n");
}
else {
print header ( -status => 500,
-type => 'text/plain');
print ("huh\n");
};
};

1
tests/docroot/www/Makefile.am

@ -1,5 +1,4 @@
EXTRA_DIST=\
404.fcgi \
404.html \
404.pl \
cgi-pathinfo.pl \

Loading…
Cancel
Save