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