X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?p=catagits%2FCatalyst-Runtime.git;a=blobdiff_plain;f=lib%2FCatalyst.pm;h=03ce6ab1f5adbe25916dc7ae0ba5e2c18de8d598;hp=596422c68e9ba76cd94658f7f0995393c3cb361d;hb=ccfec942b305481ff0c471d353e2663b1f768bf9;hpb=89cb63ec32ead40a2ba223fce60016e3c19ce5ab diff --git a/lib/Catalyst.pm b/lib/Catalyst.pm index 596422c..03ce6ab 100644 --- a/lib/Catalyst.pm +++ b/lib/Catalyst.pm @@ -2685,14 +2685,12 @@ documentation on how to upgrade from Catalyst::Engine::PSGI. EOW } - return $app->_wrapped_legacy_psgi_app($app->psgi_app); + return $app->apply_default_middlewares($app->psgi_app); } -# Note - this is for back compatibility. Catalyst should not know or care about -# how it's deployed. The recommended way of configuring this is now to -# use the ReverseProxy middleware yourself if you want it in a .psgi -# file. -sub _wrapped_legacy_psgi_app { +# FIXME - document me + +sub apply_default_middlewares { my ($app, $psgi_app) = @_; $psgi_app = Plack::Middleware::Conditional->wrap(