X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=lib%2FCatalyst.pm;h=03b0765f0541fce22f3a132b074b1aa383d7b8ff;hb=d82b4dae25a2acf8e6b0f02a111a59d1d11c93f7;hp=e01270d1415b6ce8b1ad5439457bc376fa24c752;hpb=f05b654b3811fd4d36cbd8be8c3bb24bad945812;p=catagits%2FCatalyst-Runtime.git diff --git a/lib/Catalyst.pm b/lib/Catalyst.pm index e01270d..03b0765 100644 --- a/lib/Catalyst.pm +++ b/lib/Catalyst.pm @@ -2668,7 +2668,23 @@ EOW return $app->apply_default_middlewares($app->psgi_app); } -# FIXME - document me +=head2 $c->apply_default_middlewares + +Adds the following L middlewares to your application, since they are +useful and commonly needed: + +L, (conditionally added based on the status +of your $ENV{REMOTE_ADDR}, and can be forced on with C +or forced off with C), L +(if you are using Lighttpd), L (always +applied since this middleware is smart enough to conditionally apply itself). + +Additionally if we detect we are using Nginx, we add a bit of custom middleware +to solve some problems with the way that server handles $ENV{PATH_INFO} and +$ENV{SCRIPT_NAME} + +=cut + sub apply_default_middlewares { my ($app, $psgi_app) = @_;