fix: actually fix recursive thing

This commit is contained in:
diced 2022-12-03 08:02:16 -08:00
parent 738e25feda
commit 285ed8d56e
No known key found for this signature in database
GPG key ID: 370BD1BA142842D1

View file

@ -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);
}
}