mirror of
https://github.com/elastic/kibana.git
synced 2025-04-24 09:48:58 -04:00
chore: remove httpHeaders from server handlers (#28011)
it was kind of a hack in the first place, and now it's not used at all
This commit is contained in:
parent
7b5aa7ebea
commit
9c4b4769db
2 changed files with 0 additions and 2 deletions
|
@ -75,7 +75,6 @@ describe('server createHandlers', () => {
|
|||
it('provides helper methods and properties', () => {
|
||||
expect(handlers).to.have.property('environment', 'server');
|
||||
expect(handlers).to.have.property('serverUri');
|
||||
expect(handlers).to.have.property('httpHeaders', mockRequest.headers);
|
||||
expect(handlers).to.have.property('elasticsearchClient');
|
||||
});
|
||||
|
||||
|
|
|
@ -31,7 +31,6 @@ export const createHandlers = (request, server) => {
|
|||
config.has('server.rewriteBasePath') && config.get('server.rewriteBasePath')
|
||||
? `${server.info.uri}${config.get('server.basePath')}`
|
||||
: server.info.uri,
|
||||
httpHeaders: request.headers,
|
||||
elasticsearchClient: async (...args) => {
|
||||
// check if the session is valid because continuing to use it
|
||||
if (isSecurityEnabled(server)) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue