From: Matt S Trout Date: Wed, 5 Apr 2006 11:14:24 +0000 (+0000) Subject: warning fix from fireartist X-Git-Tag: 5.7099_04~650 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?p=catagits%2FCatalyst-Runtime.git;a=commitdiff_plain;h=4c423abfe452c4f0d0da55bfeeeae73572432deb;hp=db5891bf6f31dde09595623f4fa6037ba4d8e21f warning fix from fireartist --- diff --git a/Changes b/Changes index ef366b5..15d3fdb 100644 --- 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. diff --git a/lib/Catalyst/Engine.pm b/lib/Catalyst/Engine.pm index 0c8929a..5bdf75c 100644 --- a/lib/Catalyst/Engine.pm +++ b/lib/Catalyst/Engine.pm @@ -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;