mirror of
https://github.com/ragestudio/linebridge.git
synced 2025-06-09 10:34:17 +00:00
fix next
apply
This commit is contained in:
parent
5d2f4fc044
commit
f6288d26e4
@ -116,7 +116,7 @@ class Server {
|
|||||||
}
|
}
|
||||||
|
|
||||||
initialize = async () => {
|
initialize = async () => {
|
||||||
this.httpInterface.use(async (req, res, next) => {
|
this.httpInterface.use(async (req, res) => {
|
||||||
// make sure req has an body and query
|
// make sure req has an body and query
|
||||||
if (typeof req.body === "undefined") {
|
if (typeof req.body === "undefined") {
|
||||||
req.body = {}
|
req.body = {}
|
||||||
@ -129,8 +129,6 @@ class Server {
|
|||||||
if (this.params.urlencoded) {
|
if (this.params.urlencoded) {
|
||||||
req.body = await req.urlencoded()
|
req.body = await req.urlencoded()
|
||||||
}
|
}
|
||||||
|
|
||||||
next()
|
|
||||||
})
|
})
|
||||||
|
|
||||||
//* set server defined headers
|
//* set server defined headers
|
||||||
|
Loading…
x
Reference in New Issue
Block a user