warning fix from fireartist
Matt S Trout [Wed, 5 Apr 2006 11:14:24 +0000 (11:14 +0000)]
Changes
lib/Catalyst/Engine.pm

diff --git a/Changes b/Changes
index ef366b5..15d3fdb 100644 (file)
--- a/Changes
+++ b/Changes
@@ -1,6 +1,7 @@
 This file documents the revision history for Perl extension Catalyst.
 
 5.67   
+        - Fix up Engine to avoid a new 5.8.8 warning
         - Added app name with :: support for PAR
         - Added $c->models/views/controllers
         - Static::Simple: Unescape the URI path before looking for the file.
index 0c8929a..5bdf75c 100644 (file)
@@ -42,7 +42,7 @@ sub finalize_body {
     my $body = $c->response->body;
     if ( ref $body && ($body->can('read') || ref($body) eq 'GLOB') ) {
         while ( !eof $body ) {
-            read $body, my $buffer, $CHUNKSIZE;
+            read $body, my ($buffer), $CHUNKSIZE;
             last unless $self->write( $c, $buffer );
         }
         close $body;