upload site
This commit is contained in:
commit
69c5b90d6a
3300 changed files with 224783 additions and 0 deletions
7
node_modules/hide-powered-by/dist/index.d.ts
generated
vendored
Normal file
7
node_modules/hide-powered-by/dist/index.d.ts
generated
vendored
Normal file
|
@ -0,0 +1,7 @@
|
|||
/// <reference types="node" />
|
||||
import { IncomingMessage, ServerResponse } from 'http';
|
||||
interface HidePoweredByOptions {
|
||||
setTo?: string;
|
||||
}
|
||||
declare const _default: (options?: HidePoweredByOptions | undefined) => (_req: IncomingMessage, res: ServerResponse, next: () => void) => void;
|
||||
export = _default;
|
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();
|
||||
};
|
||||
}
|
||||
};
|
Loading…
Add table
Add a link
Reference in a new issue