mirror of
https://github.com/abrendan/MicDropMessages.git
synced 2025-08-25 22:12:02 +02:00
Initial commit
This commit is contained in:
16
node_modules/hide-powered-by/dist/index.js
generated
vendored
Normal file
16
node_modules/hide-powered-by/dist/index.js
generated
vendored
Normal file
@@ -0,0 +1,16 @@
|
||||
"use strict";
|
||||
module.exports = function hidePoweredBy(options) {
|
||||
var _a = (options || {}).setTo, setTo = _a === void 0 ? null : _a;
|
||||
if (setTo) {
|
||||
return function hidePoweredBy(_req, res, next) {
|
||||
res.setHeader('X-Powered-By', setTo);
|
||||
next();
|
||||
};
|
||||
}
|
||||
else {
|
||||
return function hidePoweredBy(_req, res, next) {
|
||||
res.removeHeader('X-Powered-By');
|
||||
next();
|
||||
};
|
||||
}
|
||||
};
|
Reference in New Issue
Block a user