mirror of
https://github.com/Lissy93/dashy.git
synced 2025-07-29 00:25:02 +02:00
Send content type header response
This commit is contained in:
parent
806db58be6
commit
f9c0ff68f7
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user