remove app version from request headers, broken in the build

This commit is contained in:
Joe Fleming 2015-01-21 12:19:33 -07:00
parent c6ec47369b
commit 5f1fb703ae

View file

@ -1,11 +1,6 @@
var path = require('path');
var pkgPath = path.resolve(__dirname, '..', '..', '..', 'package.json');
var pkg = require(pkgPath);
module.exports = function () {
return function (req, res, next) {
res.header('X-App-Name', 'kibana');
res.header('X-App-Version', pkg.version);
next();
};
};