Adding ability to switch X-Catalyst on by config. For everyone who would like to...
Tomas Doran [Wed, 31 Mar 2010 20:09:17 +0000 (20:09 +0000)]
lib/Catalyst.pm

index 13c813a..dab2c8f 100644 (file)
@@ -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 );
     }