summaryrefslogtreecommitdiff
path: root/tests/docroot
diff options
context:
space:
mode:
authorGlenn Strauss <gstrauss@gluelogic.com>2016-07-14 14:29:02 -0400
committerGlenn Strauss <gstrauss@gluelogic.com>2016-07-14 16:31:08 -0400
commit8861c2bb54f31c8fbbf6733d4de7bf54d940dec6 (patch)
treea86dd408486b45698dd86f0480a5e4f71c233149 /tests/docroot
parentbcddcf8b0eb03961f4992747c8a71976b7060207 (diff)
downloadlighttpd-git-8861c2bb54f31c8fbbf6733d4de7bf54d940dec6.tar.gz
[mod_cgi] handle local redirect response (fixes #2108)
RFC3875 CGI 1.1 specification section 6.2.2 Local Redirect Response http://www.ietf.org/rfc/rfc3875 x-ref: "CGI local redirect not implemented correctly" https://redmine.lighttpd.net/issues/2108
Diffstat (limited to 'tests/docroot')
-rw-r--r--tests/docroot/www/cgi.pl5
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/docroot/www/cgi.pl b/tests/docroot/www/cgi.pl
index 6269bd2f..096d509e 100644
--- a/tests/docroot/www/cgi.pl
+++ b/tests/docroot/www/cgi.pl
@@ -1,5 +1,10 @@
#!/usr/bin/env perl
+if ($ENV{"QUERY_STRING"} eq "internal-redir") {
+ print "Location: /cgi.pl\r\n\r\n";
+ exit 0;
+}
+
print "Content-Type: text/html\r\n\r\n";
print $ENV{"SCRIPT_NAME"};