Skip to content

armgit / dashy

Public Imported from GitHub
0

πŸš€ A self-hostable personal dashboard built for you. Includes status-checking, widgets, themes, icon packs, a UI editor and tons more!

Send content type header response

Al Salehf9c0ff68f78a
diff --git a/server.js b/server.js
index 8c70a248..5737245c 100644
--- a/server.js
+++ b/server.js
@@ -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);