Added body_ref and body_length and minor optimization, use refs where it's possible
[catagits/Catalyst-Runtime.git] / lib / Catalyst / Engine / Test.pm
index a093ccb..f7afec3 100644 (file)
@@ -55,7 +55,7 @@ This class overloads some methods from C<Catalyst::Engine>.
 
 sub finalize_body {
     my $c = shift;
-    $c->http->response->content( $c->response->body );
+    $c->http->response->content_ref( $c->response->body_ref );
 }
 
 =item $c->finalize_headers