mirror of
https://github.com/elastic/kibana.git
synced 2025-04-24 17:59:23 -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', () => {
|
it('provides helper methods and properties', () => {
|
||||||
expect(handlers).to.have.property('environment', 'server');
|
expect(handlers).to.have.property('environment', 'server');
|
||||||
expect(handlers).to.have.property('serverUri');
|
expect(handlers).to.have.property('serverUri');
|
||||||
expect(handlers).to.have.property('httpHeaders', mockRequest.headers);
|
|
||||||
expect(handlers).to.have.property('elasticsearchClient');
|
expect(handlers).to.have.property('elasticsearchClient');
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
|
@ -31,7 +31,6 @@ export const createHandlers = (request, server) => {
|
||||||
config.has('server.rewriteBasePath') && config.get('server.rewriteBasePath')
|
config.has('server.rewriteBasePath') && config.get('server.rewriteBasePath')
|
||||||
? `${server.info.uri}${config.get('server.basePath')}`
|
? `${server.info.uri}${config.get('server.basePath')}`
|
||||||
: server.info.uri,
|
: server.info.uri,
|
||||||
httpHeaders: request.headers,
|
|
||||||
elasticsearchClient: async (...args) => {
|
elasticsearchClient: async (...args) => {
|
||||||
// check if the session is valid because continuing to use it
|
// check if the session is valid because continuing to use it
|
||||||
if (isSecurityEnabled(server)) {
|
if (isSecurityEnabled(server)) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue