Send content type header response

This commit is contained in:
Al Saleh 2025-07-21 07:04:00 +02:00
parent 806db58be6
commit f9c0ff68f7

View File

@ -147,7 +147,8 @@ const app = express()
.use(ENDPOINTS.statusCheck, (req, res) => {
try {
statusCheck(req.url, async (results) => {
await res.json(results).end();
res.setHeader('Content-Type', 'application/json');
await res.end(results);
});
} catch (e) {
printWarning(`Error running status check for ${req.url}\n`, e);