diff options
Diffstat (limited to 'lib/rainbows/fiber/io/methods.rb')
-rw-r--r-- | lib/rainbows/fiber/io/methods.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/rainbows/fiber/io/methods.rb b/lib/rainbows/fiber/io/methods.rb index 29c9854..29ee397 100644 --- a/lib/rainbows/fiber/io/methods.rb +++ b/lib/rainbows/fiber/io/methods.rb @@ -16,7 +16,7 @@ module Rainbows::Fiber::IO::Methods end # for wrapping output response bodies - def each(&block) + def each if buf = kgio_read(16384) yield buf yield buf while kgio_read(16384, buf) |