From 0a5c3f4f8a7f4c8d4f34d1c84093f8527c2d05cd Mon Sep 17 00:00:00 2001 From: Mantas Date: Mon, 4 Nov 2019 14:25:42 +0200 Subject: [PATCH] Follow up - a883bbadb36060a31fa1442b4d44eb68e0d48900 - UserAgent sends SearchIndexBackend DELETE request options as parameters. Fixed by unifying UserAgent interface to support parameters as other request methods do. --- lib/user_agent.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/user_agent.rb b/lib/user_agent.rb index 748b65d25..8de7779d4 100644 --- a/lib/user_agent.rb +++ b/lib/user_agent.rb @@ -205,7 +205,7 @@ returns =end - def self.delete(url, options = {}, count = 10) + def self.delete(url, params = {}, options = {}, count = 10) uri = URI.parse(url) http = get_http(uri, options) @@ -221,7 +221,7 @@ returns handled_open_timeout(options[:open_socket_tries]) do Timeout.timeout(total_timeout) do response = http.request(request) - return process(request, response, uri, count, {}, options) + return process(request, response, uri, count, params, options) end end rescue => e