mirror of
https://github.com/ragestudio/linebridge.git
synced 2025-06-09 10:34:17 +00:00
uset unused headers
This commit is contained in:
parent
31f83638ae
commit
9f7e05f7d1
@ -208,15 +208,6 @@ class Server {
|
||||
}
|
||||
|
||||
// set headers
|
||||
this.httpServer.use((req, res, next) => {
|
||||
req.requestId = nanoid()
|
||||
res.setHeader("request_id", req.requestId)
|
||||
next()
|
||||
})
|
||||
this.httpServer.use((req, res, next) => {
|
||||
res.removeHeader("X-Powered-By")
|
||||
next()
|
||||
})
|
||||
this.httpServer.use((req, res, next) => {
|
||||
Object.keys(this.headers).forEach((key) => {
|
||||
res.setHeader(key, this.headers[key])
|
||||
|
Loading…
x
Reference in New Issue
Block a user