UNPKG

ultimate

Version:

Dependency library for `ultimate-seed`.

22 lines (18 loc) 349 B
/* * ultimate.server.middleware.hidePoweredByHeader */ 'use strict'; /** * 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;