fix next apply

This commit is contained in:
srgooglo 2022-05-06 13:41:51 +02:00
parent 5d2f4fc044
commit f6288d26e4

View File

@ -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