Merge pull request #104 from SISheogorath/feature/dnt
Respect DNT header
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user