Skip to content

Commit ed72e28

Browse files
committed
Add safe guard
1 parent 60e052e commit ed72e28

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

  • lib/logstash/outputs/elasticsearch/http_client

lib/logstash/outputs/elasticsearch/http_client/pool.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -347,6 +347,7 @@ def perform_request(method, path, params={}, body=nil)
347347
end
348348

349349
def perform_request_to_url(url, method, path, params={}, body=nil)
350+
params ||= {}
350351
params[:headers] = DEFAULT_EAV_HEADER.merge(params[:headers] || {}) if serverless?
351352
@adapter.perform_request(url, method, path, params, body)
352353
end

0 commit comments

Comments
 (0)