IkiWiki::Wrapper: allow REDIRECT_STATUS and REDIRECT_URL through from environment

This is useful to act as an Apache 404 ErrorDocument.
master
Simon McVittie 2009-01-31 18:06:44 +00:00
parent 78d1b2340e
commit 3e290ce7ee
1 changed files with 2 additions and 1 deletions

View File

@ -28,7 +28,8 @@ sub gen_wrapper () {
my @envsave;
push @envsave, qw{REMOTE_ADDR QUERY_STRING REQUEST_METHOD REQUEST_URI
CONTENT_TYPE CONTENT_LENGTH GATEWAY_INTERFACE
HTTP_COOKIE REMOTE_USER HTTPS} if $config{cgi};
HTTP_COOKIE REMOTE_USER HTTPS REDIRECT_STATUS
REDIRECT_URL} if $config{cgi};
my $envsave="";
foreach my $var (@envsave) {
$envsave.=<<"EOF";