mirror of
https://github.com/Lissy93/dashy.git
synced 2025-12-06 00:26:20 +01:00
Send content type header response
This commit is contained in:
parent
806db58be6
commit
f9c0ff68f7
1 changed files with 2 additions and 1 deletions
|
|
@ -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…
Reference in a new issue