diff options
Diffstat (limited to 'lib/rainbows/fiber/io.rb')
-rw-r--r-- | lib/rainbows/fiber/io.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/rainbows/fiber/io.rb b/lib/rainbows/fiber/io.rb index 49aef3d..4c7864d 100644 --- a/lib/rainbows/fiber/io.rb +++ b/lib/rainbows/fiber/io.rb @@ -28,7 +28,7 @@ class Rainbows::Fiber::IO end # for wrapping output response bodies - def each(&block) + def each buf = readpartial(16384) yield buf yield buf while readpartial(16384, buf) |