lib/protocol/http/body/rewindable.rb in protocol-http-0.18.0 vs lib/protocol/http/body/rewindable.rb in protocol-http-0.19.0
- old
+ new
@@ -37,9 +37,13 @@
def empty?
(@index >= @chunks.size) && super
end
+ def ready?
+ (@index < @chunks.size) || super
+ end
+
# A rewindable body wraps some other body. Convert it to a buffered body
def buffered
Buffered.new(@chunks)
end