[Catalyst-commits] r13911 - in Catalyst-Action-RenderView/trunk: .
lib/Catalyst/Action
t0m at dev.catalyst.perl.org
t0m at dev.catalyst.perl.org
Wed Jan 5 19:29:08 GMT 2011
Author: t0m
Date: 2011-01-05 19:29:08 +0000 (Wed, 05 Jan 2011)
New Revision: 13911
Modified:
Catalyst-Action-RenderView/trunk/Changes
Catalyst-Action-RenderView/trunk/lib/Catalyst/Action/RenderView.pm
Log:
Version 0.16
Modified: Catalyst-Action-RenderView/trunk/Changes
===================================================================
--- Catalyst-Action-RenderView/trunk/Changes 2011-01-05 09:49:03 UTC (rev 13910)
+++ Catalyst-Action-RenderView/trunk/Changes 2011-01-05 19:29:08 UTC (rev 13911)
@@ -1,3 +1,7 @@
+0.16 2011-01-05 19:28:00 GMT
+ - Fix bug accidentally introduced in the last version with response
+ 3xx statuses.
+
0.15 2011-01-04 14:19:36 CET
- Don't delegate to a view if the response body is set to `undef'.
- Make sure a Test::More with done_testing support is available.
Modified: Catalyst-Action-RenderView/trunk/lib/Catalyst/Action/RenderView.pm
===================================================================
--- Catalyst-Action-RenderView/trunk/lib/Catalyst/Action/RenderView.pm 2011-01-05 09:49:03 UTC (rev 13910)
+++ Catalyst-Action-RenderView/trunk/lib/Catalyst/Action/RenderView.pm 2011-01-05 19:29:08 UTC (rev 13911)
@@ -3,7 +3,7 @@
use strict;
use warnings;
-our $VERSION = '0.15';
+our $VERSION = '0.16';
use base 'Catalyst::Action';
@@ -51,7 +51,7 @@
return 1 if $c->req->method eq 'HEAD';
return 1 if defined $c->response->body;
return 1 if scalar @{ $c->error } && !$c->stash->{template};
- return 1 if $c->response->status =~ /^(?:204)$/;
+ return 1 if $c->response->status =~ /^(?:204|3\d\d)$/;
my $view = $c->view()
|| die "Catalyst::Action::RenderView could not find a view to forward to.\n";
$c->forward( $view );
More information about the Catalyst-commits
mailing list