class Aws::Plugins::S3Redirects::Handler

@api private

def call(context)

def call(context)
  response = @handler.call(context)
  if context.http_response.status_code == 307
    endpoint = context.http_response.headers['location']
    context.http_request.endpoint = endpoint
    context.http_response.body.truncate(0)
    @handler.call(context)
  else
    response
  end
end