Permalink
Browse files

Fixed a bug where sending a file simply doesn't work without AIO

  • Loading branch information...
1 parent 64d2318 commit 103746ce9110f2b0ec8db030f08749fc66ff7e6e @miyagawa miyagawa committed Sep 29, 2009
Showing with 1 addition and 0 deletions.
  1. +1 −0 lib/Plack/Server/Danga/Socket.pm
@@ -224,6 +224,7 @@ sub _response_handler {
}
elsif (ref $body eq 'GLOB') {
my $read = do { local $/; <$body> };
+ $socket->write($read);
$body->close;
$disconnect_cb->();
}

0 comments on commit 103746c

Please sign in to comment.