mirror of
https://github.com/Lissy93/dashy.git
synced 2025-12-06 08:34:14 +01:00
🔀 Merge pull request #1877 from alayham/bug/1746-xml-parsing-error-on-status-check
Send json response for status check
This commit is contained in:
commit
d947ed5c53
1 changed files with 1 additions and 0 deletions
|
|
@ -147,6 +147,7 @@ const app = express()
|
|||
.use(ENDPOINTS.statusCheck, (req, res) => {
|
||||
try {
|
||||
statusCheck(req.url, async (results) => {
|
||||
res.setHeader('Content-Type', 'application/json');
|
||||
await res.end(results);
|
||||
});
|
||||
} catch (e) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue