fix to Catalyst::Request body()
David Kamholz [Mon, 11 Dec 2006 19:10:17 +0000 (19:10 +0000)]
Changes
lib/Catalyst/Request.pm

diff --git a/Changes b/Changes
index 49ec3d0..87aa118 100644 (file)
--- a/Changes
+++ b/Changes
@@ -1,6 +1,7 @@
 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)
         - ...
index ce1a428..7bebb4c 100644 (file)
@@ -146,6 +146,7 @@ C<application/x-www-form-urlencoded> or C<multipart/form-data>.
 sub body {
     my ( $self, $body ) = @_;
     $self->{_context}->prepare_body;
+    $self->{_body}->body($body) if $body;
     return $self->{_body}->body;
 }