From: Andy Grundman Date: Fri, 23 Feb 2007 15:51:49 +0000 (+0000) Subject: Revert ningu's body change, can't see a good reason for this, and it has no tests X-Git-Tag: 5.7099_04~243 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?p=catagits%2FCatalyst-Runtime.git;a=commitdiff_plain;h=e4592f86a590db2a945e065be9511c1ecffec802 Revert ningu's body change, can't see a good reason for this, and it has no tests --- diff --git a/Changes b/Changes index e5754bd..b9d4c15 100644 --- a/Changes +++ b/Changes @@ -1,7 +1,6 @@ This file documents the revision history for Perl extension Catalyst. 5.7007 ?? - - allow mutation of body() in Catalyst::Request - Don't ignore file uploads if form contains a text field with the same name. (Carl Franks) - Support restart_delay of 0 (for use in the POE engine). diff --git a/lib/Catalyst/Request.pm b/lib/Catalyst/Request.pm index 40825b7..496682d 100644 --- a/lib/Catalyst/Request.pm +++ b/lib/Catalyst/Request.pm @@ -144,12 +144,11 @@ C or C. =cut sub body { - my ( $self, $body ) = @_; + my $self = shift; $self->{_context}->prepare_body; return unless $self->{_body}; - $self->{_body}->body($body) if $body; return $self->{_body}->body; }