Merge pull request #883 from SISheogorath/fix/contentTypes
Fixing content types in status router
This commit is contained in:
commit
b1d1f469de
1 changed files with 4 additions and 2 deletions
|
@ -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)
|
||||
})
|
||||
|
|
Loading…
Reference in a new issue