summaryrefslogtreecommitdiff
path: root/app.js
diff options
context:
space:
mode:
authorWu Cheng-Han2017-03-22 23:44:09 +0800
committerWu Cheng-Han2017-03-22 23:44:09 +0800
commit011d043b2a8d9c8dcfd5cee4b5d9ab4248dac653 (patch)
tree71882be1fdc38ff3687052646bd1cb9abaefb6b3 /app.js
parente6298004572004b0f27b29a4b7ed51f884ba0095 (diff)
Update to indicate version in status API header
Diffstat (limited to 'app.js')
-rw-r--r--app.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/app.js b/app.js
index 72921583..9f5098e5 100644
--- a/app.js
+++ b/app.js
@@ -234,7 +234,8 @@ app.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
+ 'HackMD-Version': config.version
})
res.send(data)
})