aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/controllers/shared
diff options
context:
space:
mode:
authorWicklow <wicklow@framasoft.org>2023-03-07 10:52:20 +0100
committerChocobozzz <chocobozzz@cpy.re>2023-03-07 11:16:56 +0100
commit73fb3dc53571a6e94750a9d6cb5c2e949e1adcb9 (patch)
treef86cfe5b29a999bcbc10562e918df33429b468b4 /server/controllers/shared
parenta3e5f7e732cca41267314d64307bdcfebd12e7de (diff)
downloadPeerTube-73fb3dc53571a6e94750a9d6cb5c2e949e1adcb9.tar.gz
PeerTube-73fb3dc53571a6e94750a9d6cb5c2e949e1adcb9.tar.zst
PeerTube-73fb3dc53571a6e94750a9d6cb5c2e949e1adcb9.zip
Fix file token reinjection on fragments
Diffstat (limited to 'server/controllers/shared')
-rw-r--r--server/controllers/shared/m3u8-playlist.ts8
1 files changed, 6 insertions, 2 deletions
diff --git a/server/controllers/shared/m3u8-playlist.ts b/server/controllers/shared/m3u8-playlist.ts
index e2a66efc0..cea5eb5d2 100644
--- a/server/controllers/shared/m3u8-playlist.ts
+++ b/server/controllers/shared/m3u8-playlist.ts
@@ -4,8 +4,12 @@ function doReinjectVideoFileToken (req: express.Request) {
4 return req.query.videoFileToken && req.query.reinjectVideoFileToken 4 return req.query.videoFileToken && req.query.reinjectVideoFileToken
5} 5}
6 6
7function buildReinjectVideoFileTokenQuery (req: express.Request) { 7function buildReinjectVideoFileTokenQuery (req: express.Request, isMaster: boolean) {
8 return 'videoFileToken=' + req.query.videoFileToken 8 const query = 'videoFileToken=' + req.query.videoFileToken
9 if (isMaster) {
10 return query + '&reinjectVideoFileToken=true'
11 }
12 return query
9} 13}
10 14
11export { 15export {