Came across this when trying to use helmet with opine. Helmet uses res.removeHeader in its middleware that it applies, which produces an error with opine
Setup:
Deno Version: 1.11.0
v8 Version: v8 9.1.269.35
Typescript Version: 4.3.2
Opine Version: 1.4.0
Helmet version: 4.6.0
Details
In express/node, res.removeHeader comes from node's http.Response object, and express simply exposes it on its own embellished response object, and even calls into it in some cases. With deno/opine, I believe res.removeHeader could just be a method that removes the named header from this.headers
Issue
Came across this when trying to use
helmet
withopine
. Helmet usesres.removeHeader
in its middleware that it applies, which produces an error withopine
Setup:
Deno Version: 1.11.0
v8 Version: v8 9.1.269.35
Typescript Version: 4.3.2
Opine Version: 1.4.0
Helmet version: 4.6.0
Details
In express/node,
res.removeHeader
comes from node'shttp.Response
object, andexpress
simply exposes it on its own embellished response object, and even calls into it in some cases. With deno/opine, I believeres.removeHeader
could just be a method that removes the named header fromthis.headers