Skip to content

Commit

Permalink
fixed potential PSGI bug
Browse files Browse the repository at this point in the history
  • Loading branch information
kraih committed May 5, 2011
1 parent 272e76c commit fce7094
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions Changes
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ This file documents the revision history for Perl extension Mojolicious.
- Updated Mojo::Base and Mojolicious::Lite to enable Perl 5.10
features if available.
- Updated jQuery to version 1.6.
- Fixed PSGI read error handling.
- Fixed 64bit WebSocket message bug.
- Fixed small Windows bug.
- Fixed typos.
Expand Down
2 changes: 1 addition & 1 deletion lib/Mojo/Server/PSGI.pm
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ sub run {
# Request body
while (!$req->is_done) {
my $read = $env->{'psgi.input'}->read(my $buffer, CHUNK_SIZE, 0);
last if $read == 0;
last unless $read;
$req->parse($buffer);
}

Expand Down

0 comments on commit fce7094

Please sign in to comment.