Skip to content

Commit 50489f0

Browse files
committed
critical bug fix to the bulk delete method
1 parent 48f934a commit 50489f0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/ontologies_api_client/http.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -161,8 +161,8 @@ def self.delete(path, params = {}, options = {})
161161
response = conn.delete do |req|
162162
req.url path
163163
req.params = params.dup
164-
req.options[:timeout] = 60
165-
req.headers.merge(headers)
164+
req.options[:timeout] = options[:timeout] || 60
165+
req.headers.merge!(headers)
166166
end
167167
rescue StandardError => e
168168
query = Faraday::Utils.build_query(params)

0 commit comments

Comments
 (0)