From 5da8bc53eb48f179300d06329daf8f95eb14d9b0 Mon Sep 17 00:00:00 2001 From: Swadesh Behera Date: Thu, 5 Nov 2020 20:10:07 +0530 Subject: [PATCH] added httpAuth to options Required for password protected elastic search client --- lib/client.js | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/client.js b/lib/client.js index 56bbec6..af5c4bf 100644 --- a/lib/client.js +++ b/lib/client.js @@ -17,6 +17,7 @@ module.exports = function(options) { }; } + opts.httpAuth=options.auth || null; opts.log = options.log || null; return new elasticsearch.Client(opts);