From f0693fd6721142b02ad5d79800e9f0572c447842 Mon Sep 17 00:00:00 2001 From: Doug Cox Date: Mon, 27 Nov 2023 17:22:55 -0800 Subject: [PATCH] Fix missing custom headers for searchapi endpoints (#138) --- factories/searchApiSearcherFactory.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/factories/searchApiSearcherFactory.js b/factories/searchApiSearcherFactory.js index f419601..a6b27ed 100644 --- a/factories/searchApiSearcherFactory.js +++ b/factories/searchApiSearcherFactory.js @@ -78,8 +78,10 @@ //baseUrl = queryTemplateSvc.hydrate(baseUrl, self.queryText, {encodeURI: true, defaultKw: '""'}); self.inError = false; + var headers = esUrlSvc.getHeaders(uri, self.config.customHeaders); + activeQueries.count++; - return transport.query(url, payload, null) + return transport.query(url, payload, headers) .then(function success(httpConfig) { const data = httpConfig.data;