Skip to content

Commit b1d1f46

Browse files
authored
Merge pull request #883 from SISheogorath/fix/contentTypes
Fixing content types in status router
2 parents 762cff6 + d76ea54 commit b1d1f46

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

lib/web/statusRouter.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,8 @@ statusRouter.get('/status', function (req, res, next) {
1717
realtime.getStatus(function (data) {
1818
res.set({
1919
'Cache-Control': 'private', // only cache by client
20-
'X-Robots-Tag': 'noindex, nofollow' // prevent crawling
20+
'X-Robots-Tag': 'noindex, nofollow', // prevent crawling
21+
'Content-Type': 'application/json'
2122
})
2223
res.send(data)
2324
})
@@ -101,7 +102,8 @@ statusRouter.get('/config', function (req, res) {
101102
}
102103
res.set({
103104
'Cache-Control': 'private', // only cache by client
104-
'X-Robots-Tag': 'noindex, nofollow' // prevent crawling
105+
'X-Robots-Tag': 'noindex, nofollow', // prevent crawling
106+
'Content-Type': 'application/javascript'
105107
})
106108
res.render(config.constantsPath, data)
107109
})

0 commit comments

Comments
 (0)