lib/strava/web/connection.rb in strava-ruby-client-0.2.0 vs lib/strava/web/connection.rb in strava-ruby-client-0.3.0
- old
+ new
@@ -23,10 +23,10 @@
::Faraday::Connection.new(endpoint, options) do |connection|
connection.use ::Faraday::Request::Multipart
connection.use ::Faraday::Request::UrlEncoded
connection.use ::Strava::Web::Response::RaiseError
- connection.use ::FaradayMiddleware::ParseJson
+ connection.use ::FaradayMiddleware::ParseJson, content_type: /\bjson$/
connection.response :logger, logger if logger
connection.adapter ::Faraday.default_adapter
end
end
end