lib/oneaccess/api/api_base.rb in oneaccess-1.0.0 vs lib/oneaccess/api/api_base.rb in oneaccess-1.0.1

- old
+ new

@@ -1,8 +1,8 @@ # frozen_string_literal: true -require "rest-client" +require "faraday" require "json" require_relative "../response/api_error" require_relative "../error/api_error" module ONEAccess @@ -12,10 +12,10 @@ def send_get(method, params = {}) Http::HttpClient.get(api_url(method), params) end def send_post(method, body) - Http::HttpClient.post(api_url(method), body, content_type: :json) + Http::HttpClient.post(api_url(method), body, "Content-Type" => "application/json") end def resource_api_path const_get("RESOURCE_API_PATH") rescue StandardError