lib/pagarme/request.rb in pagarme-2.3.0 vs lib/pagarme/request.rb in pagarme-2.4.0
- old
+ new
@@ -8,10 +8,11 @@
SSL_CA_FILEPATH = File.join File.dirname(__FILE__), '..', '..', 'certs', 'cabundle.pem'
DEFAULT_HEADERS = {
'Content-Type' => 'application/json; charset=utf8',
'Accept' => 'application/json',
- 'User-Agent' => "pagarme-ruby/#{PagarMe::VERSION}"
+ 'User-Agent' => "pagarme-ruby/#{PagarMe::VERSION}",
+ 'X-PagarMe-User-Agent' => "pagarme-ruby/#{PagarMe::VERSION}"
}
def initialize(path, method, options={})
raise PagarMe::RequestError, 'You need to configure a API key before performing requests.' unless PagarMe.api_key