Skip to content

Commit

Permalink
Merge pull request #36 from iugu/fix_default_headers
Browse files Browse the repository at this point in the history
Correção na geração do cabeçalho de autorização
  • Loading branch information
silviolrjunior authored Aug 3, 2021
2 parents 48f232d + e497cef commit ac29857
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 1 addition & 2 deletions lib/iugu/api_request.rb
Original file line number Diff line number Diff line change
Expand Up @@ -43,12 +43,11 @@ def self.handle_response(response)

def self.default_headers
{
authorization: 'Basic ' + Base64.encode64(Iugu.api_key + ':'),
authorization: 'Basic ' + Base64.strict_encode64(Iugu.api_key + ':'),
accept: 'application/json',
accept_charset: 'utf-8',
user_agent: 'Iugu RubyLibrary',
accept_language: 'pt-br;q=0.9,pt-BR',
#content_type: 'application/x-www-form-urlencoded; charset=utf-8'
content_type: 'application/json; charset=utf-8'
}
end
Expand Down
2 changes: 1 addition & 1 deletion lib/iugu/version.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
module Iugu
VERSION = '1.0.9'
VERSION = '1.0.10'
end

0 comments on commit ac29857

Please sign in to comment.