lib/elasticsearch/api/actions/license/post.rb in elasticsearch-api-8.1.0 vs lib/elasticsearch/api/actions/license/post.rb in elasticsearch-api-8.1.2

- old
+ new

@@ -26,14 +26,13 @@ # @option arguments [Hash] :body licenses to be installed # # @see https://www.elastic.co/guide/en/elasticsearch/reference/8.1/update-license.html # def post(arguments = {}) + arguments = arguments.clone headers = arguments.delete(:headers) || {} - body = arguments.delete(:body) - - arguments = arguments.clone + body = arguments.delete(:body) method = Elasticsearch::API::HTTP_PUT path = "_license" params = Utils.process_params(arguments)