class Aws::S3::Plugins::S3Signer::BucketRegionErrorHandler
def resign_with_new_region(context, actual_region)
def resign_with_new_region(context, actual_region) context.http_response.body.truncate(0) context.http_request.endpoint.host = S3Signer.new_hostname( context, actual_region ) context.metadata[:redirect_region] = actual_region signer = Aws::Plugins::Sign.signer_for( context[:auth_scheme], context.config, actual_region ) signer.sign(context) end