From 4989e7d3b874f1033c540ba0e11aa1dd2aa38f8a Mon Sep 17 00:00:00 2001 From: Carlos Amorim Date: Mon, 2 Aug 2021 12:19:16 -0300 Subject: [PATCH 1/2] Fix header authorization --- lib/iugu/api_request.rb | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lib/iugu/api_request.rb b/lib/iugu/api_request.rb index 96927c6..6fca72c 100644 --- a/lib/iugu/api_request.rb +++ b/lib/iugu/api_request.rb @@ -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 From e497cef2561efbb014ba6bd844f49de6c1e8e567 Mon Sep 17 00:00:00 2001 From: Carlos Amorim Date: Tue, 3 Aug 2021 17:38:37 -0300 Subject: [PATCH 2/2] v1.0.10 --- lib/iugu/version.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/iugu/version.rb b/lib/iugu/version.rb index b8727b8..cf8aa9e 100644 --- a/lib/iugu/version.rb +++ b/lib/iugu/version.rb @@ -1,3 +1,3 @@ module Iugu - VERSION = '1.0.9' + VERSION = '1.0.10' end