chore: remove httpHeaders from server handlers (#28011) (#28115)

it was kind of a hack in the first place, and now it's not used at all
This commit is contained in:
Joe Fleming 2019-01-04 14:55:55 -07:00 committed by GitHub
parent a8286160df
commit 074caf362f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 0 additions and 2 deletions

View file

@ -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');
});

View file

@ -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)) {