marcosgugs / asaas-ruby

Asaas.com Ruby API Wrapper [WORK IN PROGRESS]
19 stars 13 forks source link

fix: Empty body convert in Hash on GET requests #17

Closed Vitor-Novaes closed 1 year ago

Vitor-Novaes commented 1 year ago

Problem:

When GET routes called in Asaas::Api::Base.list method, body nil convert to Hash and become json body data, causing 403 error status CloudFront response

Solution Add method parser body to keep body nil when request method doenst have it, prevent sending empty hash

marcosgugs commented 1 year ago

Great job @Vitor-Novaes