]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blob - server/middlewares/dnt.ts
More specific message when signup is not allowed
[github/Chocobozzz/PeerTube.git] / server / middlewares / dnt.ts
1 import * as express from 'express'
2
3 const advertiseDoNotTrack = (_, res: express.Response, next: express.NextFunction) => {
4 if (!res.headersSent) {
5 res.setHeader('Tk', 'N')
6 }
7
8 return next()
9 }
10
11 // ---------------------------------------------------------------------------
12
13 export {
14 advertiseDoNotTrack
15 }