Skip to content

Commit

Permalink
Fix missing custom headers for searchapi endpoints (#138)
Browse files Browse the repository at this point in the history
  • Loading branch information
dacox authored Nov 28, 2023
1 parent 6397b08 commit f0693fd
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion factories/searchApiSearcherFactory.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down

0 comments on commit f0693fd

Please sign in to comment.