lib/protocol/http/body/readable.rb in protocol-http-0.12.1 vs lib/protocol/http/body/readable.rb in protocol-http-0.12.2

- old
+ new

@@ -65,19 +65,9 @@ end ensure self.close($!) end - # def call(stream) - # # Flushing after every chunk is inefficient, but it's also a safe default. - # self.each do |chunk| - # stream.write(chunk) - # stream.flush - # end - # ensure - # stream.close - # end - # Read all remaining chunks into a single binary string using `#each`. def join buffer = String.new.force_encoding(Encoding::BINARY) self.each do |chunk|