fix: actually fix recursive thing
This commit is contained in:
parent
738e25feda
commit
285ed8d56e
1 changed files with 1 additions and 1 deletions
|
@ -231,7 +231,7 @@ async function notFound(req: IncomingMessage, res: ServerResponse, nextServer: N
|
|||
res.setHeader('Content-Type', 'application/json');
|
||||
return res.end(JSON.stringify({ error: 'not found', url: req.url, code: 404 }));
|
||||
} else {
|
||||
return notFound(req, res, nextServer);
|
||||
return nextServer.render404(req, res);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue