lib/protocol/http/body/rewindable.rb in protocol-http-0.16.0 vs lib/protocol/http/body/rewindable.rb in protocol-http-0.16.1
- old
+ new
@@ -34,10 +34,10 @@
@chunks = []
@index = 0
end
def empty?
- @index >= @chunks.size
+ (@index >= @chunks.size) && super
end
# A rewindable body wraps some other body. Convert it to a buffered body
def buffered
Buffered.new(@chunks)