diff --git a/lib/xero-ruby/api_client.rb b/lib/xero-ruby/api_client.rb index 8dc16d4b..37740014 100644 --- a/lib/xero-ruby/api_client.rb +++ b/lib/xero-ruby/api_client.rb @@ -369,18 +369,8 @@ def build_request(http_method, path, request, opts = {}) update_params_for_auth! header_params, query_params, opts[:auth_names] - req_opts = { - :method => http_method, - :headers => header_params, - :params => query_params, - :params_encoding => @config.params_encoding, - :timeout => @config.timeout, - :verbose => @config.debugging - } - if [:post, :patch, :put, :delete].include?(http_method) req_body = build_request_body(header_params, form_params, opts[:body]) - req_opts.update :body => req_body if @config.debugging @config.logger.debug "HTTP request body param ~BEGIN~\n#{req_body}\n~END~\n" end