lib/elasticsearch/api/actions/snapshot/delete.rb in elasticsearch-api-1.0.6 vs lib/elasticsearch/api/actions/snapshot/delete.rb in elasticsearch-api-1.0.7
- old
+ new
@@ -25,10 +25,10 @@
:master_timeout ]
repository = arguments.delete(:repository)
snapshot = arguments.delete(:snapshot)
- method = 'DELETE'
+ method = HTTP_DELETE
path = Utils.__pathify( '_snapshot', Utils.__escape(repository), Utils.__listify(snapshot) )
params = Utils.__validate_and_extract_params arguments, valid_params
body = nil