Created
February 4, 2010 22:49
-
-
Save siannopollo/295225 to your computer and use it in GitHub Desktop.
Fixes a timeout problem with the aws-s3 library
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
AWS::S3::Base.class_eval do | |
class << self | |
def request_with_rewind(verb, path, options = {}, body = nil, attempts = 0, &block) | |
body.rewind if body.respond_to?(:rewind) | |
request_without_rewind verb, path, options, body, attempts, &block | |
end | |
alias_method_chain :request, :rewind | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment