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