зеркало из https://github.com/mozilla/gecko-dev.git
Bug 369956: Have testserver.pl report whether or not the server is using mod_perl
r=mkanat, a=justdave
This commit is contained in:
Родитель
83c6dc6cd5
Коммит
8b10941e4d
|
@ -19,6 +19,6 @@
|
|||
|
||||
use strict;
|
||||
print "content-type:text/plain\n\n";
|
||||
print "OK\n";
|
||||
print "OK " . ($::ENV{MOD_PERL} || "mod_cgi") . "\n";
|
||||
exit;
|
||||
|
||||
|
|
|
@ -107,8 +107,8 @@ Check your webserver configuration and try again.\n";
|
|||
|
||||
# Try to execute a cgi script
|
||||
my $response = fetch($ARGV[0] . "/testagent.cgi");
|
||||
if ($response =~ /^OK/) {
|
||||
print "TEST-OK Webserver is executing CGIs.\n";
|
||||
if ($response =~ /^OK (.*)$/) {
|
||||
print "TEST-OK Webserver is executing CGIs via $1.\n";
|
||||
} elsif ($response =~ /^#!/) {
|
||||
print
|
||||
"TEST-FAILED Webserver is fetching rather than executing CGI files.
|
||||
|
|
Загрузка…
Ссылка в новой задаче