Skip to content

Commit

Permalink
Merge pull request #5 from tetsuya/feature/faraday-adapter
Browse files Browse the repository at this point in the history
Move faraday adapter to the last in the builder
  • Loading branch information
r7kamura authored Oct 10, 2017
2 parents 0df11c2 + bf7afc4 commit f4eaa6b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/rapa/client.rb
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,9 @@ def initialize(access_key_id:, associate_tag:, secret_access_key:)
# @return [Faraday::Connection]
def connection
@connection ||= ::Faraday::Connection.new do |connection|
connection.adapter :net_http
connection.response :xml
connection.options.params_encoder = ::Rapa::Encoder.new
connection.adapter :net_http
end
end

Expand Down

0 comments on commit f4eaa6b

Please sign in to comment.