Revert ningu's body change, can't see a good reason for this, and it has no tests
Andy Grundman [Fri, 23 Feb 2007 15:51:49 +0000 (15:51 +0000)]
Changes
lib/Catalyst/Request.pm

diff --git a/Changes b/Changes
index e5754bd..b9d4c15 100644 (file)
--- 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).
index 40825b7..496682d 100644 (file)
@@ -144,12 +144,11 @@ C<application/x-www-form-urlencoded> or C<multipart/form-data>.
 =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;
 }