0eeb3ee9f9
Not all IO objects know how to #rewind themselves. For example, Ruby pipes (returned by `IO.pipe`) do implement #rewind, but they will throw an error if you try to call it. rd, wr = IO.pipe wr.rewind # Errno::ESPIPE: Illegal seek But we don't need to rewind and overwrite the IO object if we didn't get the Ranged response we expected, we could instead wait out the content that has already been downloaded, and start appending again once we reached where we left off. This is what this commit does. |
||
---|---|---|
.. | ||
api_command.rb | ||
base_service.rb | ||
batch.rb | ||
composite_io.rb | ||
download.rb | ||
hashable.rb | ||
http_command.rb | ||
json_representation.rb | ||
logging.rb | ||
multipart.rb | ||
upload.rb |