lib/algolia/client.rb in algoliasearch-1.1.0 vs lib/algolia/client.rb in algoliasearch-1.1.1
- old
+ new
@@ -50,10 +50,10 @@
session.http_get
when :POST
session.post_body = data
session.http_post
when :PUT
- session.http_put(data)
+ session.put(data)
when :DELETE
session.http_delete
end
if session.response_code >= 400 || session.response_code < 200
raise AlgoliaProtocolError.new(session.response_code, "#{method} #{session.url}: #{session.body_str}")