lib/httpx/buffer.rb in httpx-0.15.4 vs lib/httpx/buffer.rb in httpx-0.16.0
- old
+ new
@@ -30,9 +30,9 @@
def full?
@buffer.bytesize >= @limit
end
def shift!(fin)
- @buffer = @buffer.byteslice(fin..-1)
+ @buffer = @buffer.byteslice(fin..-1) || "".b
end
end
end