summaryrefslogtreecommitdiff
path: root/lib/response.js
diff options
context:
space:
mode:
authorSheogorath2019-07-20 12:50:13 +0200
committerGitHub2019-07-20 12:50:13 +0200
commit1bfed17f8ca4c0e060e204cb0764972b18df29cc (patch)
treede6a8280f69b1e9b109f321c7e120baf84e029e4 /lib/response.js
parent2f6e81e4db79dd24199c18470006722a0d191dea (diff)
parentda4665c7590616dd3d17baf4488006dac98eeee4 (diff)
Merge pull request #104 from SISheogorath/feature/dnt
Respect DNT header
Diffstat (limited to '')
-rw-r--r--lib/response.js6
1 files changed, 4 insertions, 2 deletions
diff --git a/lib/response.js b/lib/response.js
index dd33e42b..1313f9f4 100644
--- a/lib/response.js
+++ b/lib/response.js
@@ -226,7 +226,8 @@ function showPublishNote (req, res, next) {
robots: meta.robots || false, // default allow robots
GA: meta.GA,
disqus: meta.disqus,
- cspNonce: res.locals.nonce
+ cspNonce: res.locals.nonce,
+ dnt: req.headers.dnt
}
return renderPublish(data, res)
}).catch(function (err) {
@@ -608,7 +609,8 @@ function showPublishSlide (req, res, next) {
robots: meta.robots || false, // default allow robots
GA: meta.GA,
disqus: meta.disqus,
- cspNonce: res.locals.nonce
+ cspNonce: res.locals.nonce,
+ dnt: req.headers.dnt
}
return renderPublishSlide(data, res)
}).catch(function (err) {