diff options
author | Krzysztof Krzyżaniak <eloy@debian.org> | 2007-09-04 10:21:29 +0000 |
---|---|---|
committer | Krzysztof Krzyżaniak <eloy@debian.org> | 2007-09-04 10:21:29 +0000 |
commit | b1a096d6d884ec8d6413b449c3e33011bbdca870 (patch) | |
tree | b058a9c63730bcdcf63f867734060138cea7555b /tests/docroot/www/nph-status.pl | |
parent | 5f78edb3d2966d69bb688f6240d9c577e425c952 (diff) | |
download | lighttpd-b1a096d6d884ec8d6413b449c3e33011bbdca870.tar.gz |
new upstream version
Diffstat (limited to 'tests/docroot/www/nph-status.pl')
-rwxr-xr-x | tests/docroot/www/nph-status.pl | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/tests/docroot/www/nph-status.pl b/tests/docroot/www/nph-status.pl index 528791b..d817c7f 100755 --- a/tests/docroot/www/nph-status.pl +++ b/tests/docroot/www/nph-status.pl @@ -1,4 +1,10 @@ #!/usr/bin/perl -print "HTTP/1.0 30 FooBar\r\n"; +my $status = 200; + +if (defined $ENV{"QUERY_STRING"}) { + $status = $ENV{"QUERY_STRING"}; +} + +print "HTTP/1.0 ".$status." FooBar\r\n"; print "\r\n"; |