lib/mrkt/concerns/connection.rb in mrkt-0.6.2 vs lib/mrkt/concerns/connection.rb in mrkt-0.7.0

- old
+ new

@@ -9,10 +9,13 @@ def init_connection Faraday.new(url: "https://#{@host}") do |conn| conn.request :multipart conn.request :url_encoded - conn.response :logger if @debug + if @debug + conn.response :logger, @logger, (@log_options || {}) + end + conn.response :mkto, content_type: /\bjson$/ conn.options.timeout = @options[:read_timeout] if @options.key?(:read_timeout) conn.options.open_timeout = @options[:open_timeout] if @options.key?(:open_timeout)