lib/fawry/connection.rb in fawry-1.1.1 vs lib/fawry/connection.rb in fawry-1.2.1
- old
+ new
@@ -43,15 +43,15 @@
private
def connection
@connection ||= Faraday.new(url: FAWRY_BASE_URL, headers: { 'Content-Type': 'application/json',
- 'Accept': 'application/json' })
+ Accept: 'application/json' })
end
def sandbox_connection
@sandbox_connection ||= Faraday.new(url: FAWRY_SANDBOX_BASE_URL, headers: { 'Content-Type': 'application/json',
- 'Accept': 'application/json' })
+ Accept: 'application/json' })
end
# Fawry does not understand encoded params
# so we use this encoder to convert the params
# hash to a string of query params without encoding