Follow up - a883bbadb3 - UserAgent sends SearchIndexBackend DELETE request options as parameters. Fixed by unifying UserAgent interface to support parameters as other request methods do.

This commit is contained in:
Mantas 2019-11-04 14:25:42 +02:00 committed by Thorsten Eckel
parent 6e6285aedd
commit 0a5c3f4f8a

View file

@ -205,7 +205,7 @@ returns
=end =end
def self.delete(url, options = {}, count = 10) def self.delete(url, params = {}, options = {}, count = 10)
uri = URI.parse(url) uri = URI.parse(url)
http = get_http(uri, options) http = get_http(uri, options)
@ -221,7 +221,7 @@ returns
handled_open_timeout(options[:open_socket_tries]) do handled_open_timeout(options[:open_socket_tries]) do
Timeout.timeout(total_timeout) do Timeout.timeout(total_timeout) do
response = http.request(request) response = http.request(request)
return process(request, response, uri, count, {}, options) return process(request, response, uri, count, params, options)
end end
end end
rescue => e rescue => e