API inicial
This commit is contained in:
+3
@@ -0,0 +1,3 @@
|
||||
import { IncomingMessage, ServerResponse } from "http"
|
||||
declare function xPoweredBy(): (_req: IncomingMessage, res: ServerResponse, next: () => void) => void
|
||||
export default xPoweredBy
|
||||
+10
@@ -0,0 +1,10 @@
|
||||
"use strict"
|
||||
Object.defineProperty(exports, "__esModule", { value: true })
|
||||
function xPoweredBy() {
|
||||
return function xPoweredByMiddleware(_req, res, next) {
|
||||
res.removeHeader("X-Powered-By")
|
||||
next()
|
||||
}
|
||||
}
|
||||
module.exports = xPoweredBy
|
||||
exports.default = xPoweredBy
|
||||
Reference in New Issue
Block a user