From 011d043b2a8d9c8dcfd5cee4b5d9ab4248dac653 Mon Sep 17 00:00:00 2001 From: Wu Cheng-Han Date: Wed, 22 Mar 2017 23:44:09 +0800 Subject: [PATCH] Update to indicate version in status API header --- app.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app.js b/app.js index 7292158..9f5098e 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) })