summaryrefslogtreecommitdiff
path: root/lib/web
diff options
context:
space:
mode:
authorChristoph (Sheogorath) Kern2018-07-03 22:17:36 +0200
committerGitHub2018-07-03 22:17:36 +0200
commitb1d1f469de7d5df8b58c9dee94b23c1cf7527b91 (patch)
treec9ba03339d0245e43ed0c9c355123515546ca9af /lib/web
parent762cff677cddcf32ea0b0e55f338c6e410578a0e (diff)
parentd76ea5440a25e76d0aa5d8b3c95a4776be800347 (diff)
Merge pull request #883 from SISheogorath/fix/contentTypes
Fixing content types in status router
Diffstat (limited to '')
-rw-r--r--lib/web/statusRouter.js6
1 files changed, 4 insertions, 2 deletions
diff --git a/lib/web/statusRouter.js b/lib/web/statusRouter.js
index 256fead0..7ecf3839 100644
--- a/lib/web/statusRouter.js
+++ b/lib/web/statusRouter.js
@@ -17,7 +17,8 @@ statusRouter.get('/status', function (req, res, next) {
realtime.getStatus(function (data) {
res.set({
'Cache-Control': 'private', // only cache by client
- 'X-Robots-Tag': 'noindex, nofollow' // prevent crawling
+ 'X-Robots-Tag': 'noindex, nofollow', // prevent crawling
+ 'Content-Type': 'application/json'
})
res.send(data)
})
@@ -101,7 +102,8 @@ statusRouter.get('/config', function (req, res) {
}
res.set({
'Cache-Control': 'private', // only cache by client
- 'X-Robots-Tag': 'noindex, nofollow' // prevent crawling
+ 'X-Robots-Tag': 'noindex, nofollow', // prevent crawling
+ 'Content-Type': 'application/javascript'
})
res.render(config.constantsPath, data)
})