X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=lib%2FCatalyst.pm;h=04a8ad443e1c2ad863384790340a6ae1167f4eb6;hb=081ea9220deb31273cc4e778d6debdb96256beda;hp=13c813aca0e6dc96150c1b1ff93865840ffaae80;hpb=3f7d86f8303cd1d3f1d4ffa04bba510fc3a93d98;p=catagits%2FCatalyst-Runtime.git diff --git a/lib/Catalyst.pm b/lib/Catalyst.pm index 13c813a..04a8ad4 100644 --- a/lib/Catalyst.pm +++ b/lib/Catalyst.pm @@ -1890,7 +1890,7 @@ namespaces. sub get_actions { my $c = shift; $c->dispatcher->get_actions( $c, @_ ) } -=head2 $c->handle_request( $class, @arguments ) +=head2 $app->handle_request( @arguments ) Called to handle each HTTP request. @@ -1950,7 +1950,7 @@ sub prepare { #surely this is not the most efficient way to do things... $c->stats($class->stats_class->new)->enable($c->use_stats); - if ( $c->debug ) { + if ( $c->debug || $c->config->{enable_catalyst_header} ) { $c->res->headers->header( 'X-Catalyst' => $Catalyst::VERSION ); }