lib/flexirest/connection.rb in flexirest-1.3.1 vs lib/flexirest/connection.rb in flexirest-1.3.2
- old
+ new
@@ -79,15 +79,16 @@
sign_request(req, options[:api_auth])
end
end
end
- def delete(path, options={})
+ def delete(path, data, options={})
set_defaults(options)
make_safe_request(path) do
@session.delete(path) do |req|
set_per_request_timeout(req, options) if options[:timeout]
req.headers = req.headers.merge(options[:headers])
+ req.body = data
sign_request(req, options[:api_auth])
end
end
end