X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=lib%2FCatalyst.pm;h=f8a0210aaa9a4e67887dfc00f6ea83197753aafd;hb=45cab07fee0459f94b8bd4a8b30bd63cbd2d9d18;hp=8e0f17fde1082db516bfc398ec2c7ff4418b40ff;hpb=bcc7361a26b0c7a55eb6b4d49d4622367b12f809;p=catagits%2FCatalyst-Runtime.git diff --git a/lib/Catalyst.pm b/lib/Catalyst.pm index 8e0f17f..f8a0210 100644 --- a/lib/Catalyst.pm +++ b/lib/Catalyst.pm @@ -79,7 +79,7 @@ __PACKAGE__->stats_class('Catalyst::Stats'); # Remember to update this in Catalyst::Runtime as well! -our $VERSION = '5.80029'; +our $VERSION = '5.80031'; sub import { my ( $class, @arguments ) = @_; @@ -1857,7 +1857,7 @@ sub finalize_headers { } # Content-Length - if ( defined $response->body && !$response->content_length ) { + if ( defined $response->body && length $response->body && !$response->content_length ) { # get the length from a filehandle if ( blessed( $response->body ) && $response->body->can('read') || ref( $response->body ) eq 'GLOB' )