From: Tomas Doran Date: Tue, 25 Oct 2011 16:15:46 +0000 (-0700) Subject: mod_perl using_frontend_proxy fix X-Git-Tag: 5.90006~3 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?p=catagits%2FCatalyst-Runtime.git;a=commitdiff_plain;h=c7250231c0125c7c763ab9c8b7655e099cf6a1de mod_perl using_frontend_proxy fix --- diff --git a/Changes b/Changes index e66babd..4221d22 100644 --- a/Changes +++ b/Changes @@ -22,6 +22,9 @@ both by bumping the Class::Load dependency, and also adding an explicit '1;' to the end of the classes, avoiding the context issue. + - Fix using_frontend_proxy support in mod_perl by using the psgi wrapped + in default middleware in mod_perl context, rather than the raw psgi. + 5.90005 - 2011-10-22 13:35:00 New features: diff --git a/lib/Catalyst.pm b/lib/Catalyst.pm index f69afe0..d40b2a5 100644 --- a/lib/Catalyst.pm +++ b/lib/Catalyst.pm @@ -2652,7 +2652,7 @@ sub setup_engine { $meta->add_method(handler => sub { my $r = shift; - my $psgi_app = $class->psgi_app; + my $psgi_app = $class->_finalized_psgi_app; $apache->call_app($r, $psgi_app); });