mirror of
https://github.com/Lissy93/dashy.git
synced 2025-07-31 01:24:42 +02: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
@ -147,6 +147,7 @@ const app = express()
|
|||||||
.use(ENDPOINTS.statusCheck, (req, res) => {
|
.use(ENDPOINTS.statusCheck, (req, res) => {
|
||||||
try {
|
try {
|
||||||
statusCheck(req.url, async (results) => {
|
statusCheck(req.url, async (results) => {
|
||||||
|
res.setHeader('Content-Type', 'application/json');
|
||||||
await res.end(results);
|
await res.end(results);
|
||||||
});
|
});
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user