Skip to content

Commit

Permalink
Removing kbn-version from the response headers. (elastic#20551)
Browse files Browse the repository at this point in the history
* Removing kbn-version from the response headers.

* Removing test assert that we don't need
  • Loading branch information
kobelb authored and Aliaksandr Yankouski committed Jul 16, 2018
1 parent 619f7a4 commit e9cf0c7
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 2 deletions.
1 change: 0 additions & 1 deletion src/server/http/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,6 @@ export default async function (kbnServer, server, config) {
const customHeaders = {
...config.get('server.customResponseHeaders'),
'kbn-name': kbnServer.name,
'kbn-version': kbnServer.version,
};

if (response.isBoom) {
Expand Down
1 change: 0 additions & 1 deletion src/server/http/version_check.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,6 @@ describe('version_check request filter', function () {
});

expect(resp.statusCode).toBe(400);
expect(resp.headers).toHaveProperty(versionHeader, version);
expect(resp.payload).toMatch(/"Browser client is out of date/);
});

Expand Down

0 comments on commit e9cf0c7

Please sign in to comment.