ultimate
Version:
Dependency library for `ultimate-seed`.
22 lines (18 loc) • 349 B
JavaScript
/*
* ultimate.server.middleware.hidePoweredByHeader
*/
;
/**
* Attach middleware.
*
* @param {App} app Application.
* @return {undefined}
*/
function attach(app) {
app.servers.express.getServer().use(function (req, res, next) {
res.removeHeader('X-Powered-By');
next();
});
}
// Public API
exports.attach = attach;