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:
parent
6e6285aedd
commit
0a5c3f4f8a
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue