lib/afterpay/http_service.rb in afterpay-0.1.0 vs lib/afterpay/http_service.rb in afterpay-0.2.0
- old
+ new
@@ -16,11 +16,10 @@
end
# Afterpay default middleware stack
DEFAULT_MIDDLEWARE = proc do |builder|
builder.request :json
-
- builder.basic_auth(*::Afterpay.configuration.values)
+ builder.request :basic_auth, *::Afterpay.configuration.values
builder.response :mashify
builder.response :json, content_type: /\bjson$/
builder.adapter Faraday.default_adapter