mirror of
https://github.com/Chocobozzz/PeerTube.git
synced 2024-11-27 03:00:38 -06:00
16 lines
316 B
TypeScript
16 lines
316 B
TypeScript
import * as express from 'express'
|
|
|
|
const advertiseDoNotTrack = (_, res: express.Response, next: express.NextFunction) => {
|
|
if (!res.headersSent) {
|
|
res.setHeader('Tk', 'N')
|
|
}
|
|
|
|
return next()
|
|
}
|
|
|
|
// ---------------------------------------------------------------------------
|
|
|
|
export {
|
|
advertiseDoNotTrack
|
|
}
|