aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--server/middlewares/dnt.ts9
1 files changed, 7 insertions, 2 deletions
diff --git a/server/middlewares/dnt.ts b/server/middlewares/dnt.ts
index dd88005dd..a128aadf7 100644
--- a/server/middlewares/dnt.ts
+++ b/server/middlewares/dnt.ts
@@ -1,5 +1,10 @@
1const advertiseDoNotTrack = (_, res, next) => { 1import * as express from 'express'
2 res.setHeader('Tk', 'N') 2
3const advertiseDoNotTrack = (_, res: express.Response, next: express.NextFunction) => {
4 if (!res.headersSent) {
5 res.setHeader('Tk', 'N')
6 }
7
3 return next() 8 return next()
4} 9}
5 10