lib/elasticsearch/transport/transport/http/curb.rb in elasticsearch-transport-6.8.1 vs lib/elasticsearch/transport/transport/http/curb.rb in elasticsearch-transport-6.8.2
- old
+ new
@@ -1,5 +1,9 @@
+# Licensed to Elasticsearch B.V under one or more agreements.
+# Elasticsearch B.V licenses this file to you under the Apache 2.0 License.
+# See the LICENSE file in the project root for more information
+
module Elasticsearch
module Transport
module Transport
module HTTP
@@ -13,11 +17,11 @@
# Performs the request by invoking {Transport::Base#perform_request} with a block.
#
# @return [Response]
# @see Transport::Base#perform_request
#
- def perform_request(method, path, params={}, body=nil, headers=nil)
- super do |connection,url|
+ def perform_request(method, path, params={}, body=nil, headers=nil, opts={})
+ super do |connection, url|
connection.connection.url = url
case method
when 'HEAD'
connection.connection.set :nobody, true