No, don't warn in the log. clients being retarded don't concern us usually.
[catagits/Catalyst-Runtime.git] / lib / Catalyst / Engine.pm
index b802f6c..ac7469b 100644 (file)
@@ -706,7 +706,7 @@ sub read {
     my $rc = $self->read_chunk( $c, my $buffer, $readlen );
     if ( defined $rc ) {
         if (0 == $rc) { # Nothing more to read even though Content-Length
-                        # said there should be. FIXME - Warn in the log here?
+                        # said there should be.
             $self->finalize_read;
             return;
         }
@@ -727,7 +727,10 @@ there is no more data to be read.
 
 =cut
 
-sub read_chunk { }
+sub read_chunk {
+    my ($self) = @_;
+    return $self->env->{'psgi.input'}->read(@_);
+}
 
 =head2 $self->read_length