lib/ftw/protocol.rb in ftw-0.0.41 vs lib/ftw/protocol.rb in ftw-0.0.42
- old
+ new
@@ -107,10 +107,10 @@
end # def write_http_body_normal
def write_all(io, string)
while string.bytesize > 0
w = io.write(string)
- string = string[w..-1]
+ string = string.byteslice(w..-1)
end
end # def write_all
# Read the body of this message. The block is called with chunks of the
# response as they are read in.