Method: AceClient::Base4#add_authorization!

Defined in:
lib/ace-client/base4.rb

#add_authorization!Object



80
81
82
83
84
85
86
87
# File 'lib/ace-client/base4.rb', line 80

def add_authorization!
  headers['content-type'] ||= 'application/x-www-form-urlencoded'
  headers['host'] = endpoint
  headers['x-amz-date'] = datetime
  #headers['x-amz-security-token'] = credentials.session_token if credentials.session_token
  headers['x-amz-content-sha256'] ||= hexdigest(body || '')
  headers['authorization'] = authorization(datetime)
end