From: Tomas Doran Date: Mon, 30 Nov 2009 21:02:14 +0000 (+0000) Subject: I think the nginx hackery can just die with the new code in ::Engine::CGI X-Git-Tag: 5.80014_02~6 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?p=catagits%2FCatalyst-Runtime.git;a=commitdiff_plain;h=52c5e714ef4dd079008b4e736eca4e2b98e22207 I think the nginx hackery can just die with the new code in ::Engine::CGI --- diff --git a/lib/Catalyst/Engine/FastCGI.pm b/lib/Catalyst/Engine/FastCGI.pm index a6e9688..b480c9a 100644 --- a/lib/Catalyst/Engine/FastCGI.pm +++ b/lib/Catalyst/Engine/FastCGI.pm @@ -234,12 +234,9 @@ sub _fix_env if ( $env->{SERVER_SOFTWARE} =~ /lighttpd/ ) { $env->{PATH_INFO} ||= delete $env->{SCRIPT_NAME}; } - elsif ( $env->{SERVER_SOFTWARE} =~ /^nginx/ ) { - my $script_name = $env->{SCRIPT_NAME}; - $env->{PATH_INFO} =~ s/^$script_name//g; - } # Fix the environment variables PATH_INFO and SCRIPT_NAME when running # under IIS + # FIXME - How does this handle %7F? elsif ( $env->{SERVER_SOFTWARE} =~ /IIS\/[6-9]\.[0-9]/ ) { my @script_name = split(m!/!, $env->{PATH_INFO}); my @path_translated = split(m!/|\\\\?!, $env->{PATH_TRANSLATED});