[Catalyst-commits] r13870 - in Catalyst-Action-RenderView/trunk: . lib/Catalyst/Action

t0m at dev.catalyst.perl.org t0m at dev.catalyst.perl.org
Thu Dec 16 23:10:49 GMT 2010


Author: t0m
Date: 2010-12-16 23:10:49 +0000 (Thu, 16 Dec 2010)
New Revision: 13870

Modified:
   Catalyst-Action-RenderView/trunk/Makefile.PL
   Catalyst-Action-RenderView/trunk/lib/Catalyst/Action/RenderView.pm
Log:
Make RenderView do the right thing

Modified: Catalyst-Action-RenderView/trunk/Makefile.PL
===================================================================
--- Catalyst-Action-RenderView/trunk/Makefile.PL	2010-12-16 23:07:30 UTC (rev 13869)
+++ Catalyst-Action-RenderView/trunk/Makefile.PL	2010-12-16 23:10:49 UTC (rev 13870)
@@ -10,7 +10,7 @@
 name 'Catalyst-Action-RenderView';
 all_from 'lib/Catalyst/Action/RenderView.pm';
 
-requires 'Catalyst::Runtime' => '5.70';
+requires 'Catalyst::Runtime' => '5.80030';
 requires 'Test::More';
 requires 'Data::Visitor' => '0.24';
 requires 'MRO::Compat';

Modified: Catalyst-Action-RenderView/trunk/lib/Catalyst/Action/RenderView.pm
===================================================================
--- Catalyst-Action-RenderView/trunk/lib/Catalyst/Action/RenderView.pm	2010-12-16 23:07:30 UTC (rev 13869)
+++ Catalyst-Action-RenderView/trunk/lib/Catalyst/Action/RenderView.pm	2010-12-16 23:10:49 UTC (rev 13870)
@@ -49,7 +49,7 @@
         $c->response->content_type( 'text/html; charset=utf-8' );
     }
     return 1 if $c->req->method eq 'HEAD';
-    return 1 if defined $c->response->body && length( $c->response->body );
+    return 1 if defined $c->response->body;
     return 1 if scalar @{ $c->error } && !$c->stash->{template};
     return 1 if $c->response->status =~ /^(?:204)$/;
     my $view = $c->view()




More information about the Catalyst-commits mailing list