From: Simon McVittie Date: Sat, 31 Jan 2009 18:06:44 +0000 (+0000) Subject: IkiWiki::Wrapper: allow REDIRECT_STATUS and REDIRECT_URL through from environment X-Git-Tag: 3.04~86^2~6 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=3e290ce7eef9de6bad7d30b5855de14090b5edd2;p=ikiwiki.git IkiWiki::Wrapper: allow REDIRECT_STATUS and REDIRECT_URL through from environment This is useful to act as an Apache 404 ErrorDocument. --- diff --git a/IkiWiki/Wrapper.pm b/IkiWiki/Wrapper.pm index dd9971a34..8a6340f58 100644 --- a/IkiWiki/Wrapper.pm +++ b/IkiWiki/Wrapper.pm @@ -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";