Skip to content
Browse files

You can now overide typhoeus by setting Faraday.default_adapter

  • Loading branch information...
1 parent 1d0f090 commit 7b97015da761a6b00e41529509fe0ad23a816f90 @vivienschilis vivienschilis committed
Showing with 2 additions and 1 deletion.
  1. +2 −1 lib/panda/adapters/faraday.rb
View
3 lib/panda/adapters/faraday.rb
@@ -54,7 +54,7 @@ def connection
@conn ||= ::Faraday.new(:url => @api_url) do |builder|
builder.request :multipart
builder.request :url_encoded
- builder.adapter :typhoeus
+ builder.adapter ::Faraday.default_adapter
end
end
@@ -70,4 +70,5 @@ def rescue_json_parsing(&block)
end
end
+::Faraday.default_adapter = :typhoeus
Panda.adapter = Panda::Adapter::Faraday

0 comments on commit 7b97015

Please sign in to comment.
Something went wrong with that request. Please try again.