lib/async/http/body/fixed.rb in async-http-0.19.0 vs lib/async/http/body/fixed.rb in async-http-0.20.0

- old
+ new

@@ -34,10 +34,10 @@ @remaining == 0 end def read if @remaining > 0 - if chunk = @stream.read(@remaining) + if chunk = @stream.read_partial(@remaining) @remaining -= chunk.bytesize return chunk end end