Permalink
Browse files

Always use Net::HTTP adapter for making requests

  • Loading branch information...
1 parent d007939 commit df5524aa12fda3a260489ebfe4c6c50bf180dfff @janko-m committed May 14, 2012
Showing with 3 additions and 3 deletions.
  1. +1 −1 lib/flickrie/client.rb
  2. +1 −1 lib/flickrie/oauth.rb
  3. +1 −1 lib/flickrie/upload_client.rb
View
2 lib/flickrie/client.rb
@@ -42,7 +42,7 @@ def new_client(access_token_hash = {}) # :nodoc:
conn.response :json, :content_type => /(text\/plain)|(json)$/
conn.use OAuthStatusCheck
- conn.adapter Faraday.default_adapter
+ conn.adapter :net_http
end
end
View
2 lib/flickrie/oauth.rb
@@ -19,7 +19,7 @@ def self.new_connection(additional_oauth_params = {})
conn.use StatusCheck
conn.use ParseResponseParams
- conn.adapter Faraday.default_adapter
+ conn.adapter :net_http
end
end
View
2 lib/flickrie/upload_client.rb
@@ -18,7 +18,7 @@ def new_upload_client(access_token_hash = {})
conn.response :xml
conn.use OAuthStatusCheck
- conn.adapter Faraday.default_adapter
+ conn.adapter :net_http
end
end

0 comments on commit df5524a

Please sign in to comment.