lib/footrest/connection.rb in footrest-0.5.2 vs lib/footrest/connection.rb in footrest-0.5.3

- old
+ new

@@ -17,18 +17,18 @@ if config[:logger] == true faraday.response :logger elsif config[:logger] faraday.use Faraday::Response::Logger, config[:logger] end - faraday.adapter Faraday.default_adapter faraday.use Footrest::FollowRedirects faraday.use Footrest::ParseJson, :content_type => /\bjson$/ faraday.use Footrest::RaiseFootrestErrors faraday.use Footrest::Pagination faraday.headers[:accept] = "application/json" faraday.headers[:authorization] = "Bearer #{config[:token]}" if config[:token] faraday.headers[:user_agent] = "Footrest" + faraday.adapter Faraday.default_adapter end end end -end \ No newline at end of file +end