lib/spark_api/request.rb in spark_api-1.4.14 vs lib/spark_api/request.rb in spark_api-1.4.15

- old
+ new

@@ -63,10 +63,14 @@ end attempts = 0 begin request_opts = {} request_opts.merge!(options) - request_path = "/#{version}#{path}" + request_path = if middleware && middleware.to_sym == :reso_api + "/Reso/OData#{path}" + else + "/#{version}#{path}" + end start_time = Time.now if [:get, :delete, :head].include?(method.to_sym) response = authenticator.request(method, request_path, nil, request_opts) else post_data = process_request_body(body)