]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blob - server/middlewares/dnt.ts
Move controller in dedicated functions
[github/Chocobozzz/PeerTube.git] / server / middlewares / dnt.ts
1 import * as ipaddr from 'ipaddr.js'
2 import { format } from 'util'
3
4 const advertiseDoNotTrack = (_, res, next) => {
5 res.setHeader('Tk', 'N')
6 return next()
7 }
8
9 // ---------------------------------------------------------------------------
10
11 export {
12 advertiseDoNotTrack
13 }