lib/protocol/http/body/inflate.rb in protocol-http-0.23.11 vs lib/protocol/http/body/inflate.rb in protocol-http-0.23.12

- old
+ new

@@ -30,9 +30,13 @@ class Inflate < ZStream def self.for(body, encoding = GZIP) self.new(body, Zlib::Inflate.new(encoding)) end + def stream? + false + end + def read return if @stream.finished? # The stream might have been closed while waiting for the chunk to come in. if chunk = super \ No newline at end of file