Explorar el Código

Fix #263: uwsgi doesn't behave well under non-object read()

George Baugh hace 3 años
padre
commit
6751118b69
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      lib/TCMS.pm

+ 1 - 1
lib/TCMS.pm

@@ -101,7 +101,7 @@ sub app {
     if ($env->{REQUEST_METHOD} eq 'POST') {
 
         my $body = HTTP::Body->new( $env->{CONTENT_TYPE}, $env->{CONTENT_LENGTH} );
-        while ( read($env->{'psgi.input'}, my $buf, $CHUNK_SIZE) ) {
+        while ( $env->{'psgi.input'}->read(my $buf, $CHUNK_SIZE) ) {
             $body->add($buf);
         }