diff options
Diffstat (limited to 'server/controllers/lazy-static.ts')
-rw-r--r-- | server/controllers/lazy-static.ts | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/server/controllers/lazy-static.ts b/server/controllers/lazy-static.ts index c2f5c7b56..4e553479b 100644 --- a/server/controllers/lazy-static.ts +++ b/server/controllers/lazy-static.ts | |||
@@ -94,5 +94,6 @@ async function getTorrent (req: express.Request, res: express.Response) { | |||
94 | const result = await VideosTorrentCache.Instance.getFilePath(req.params.filename) | 94 | const result = await VideosTorrentCache.Instance.getFilePath(req.params.filename) |
95 | if (!result) return res.sendStatus(HttpStatusCode.NOT_FOUND_404) | 95 | if (!result) return res.sendStatus(HttpStatusCode.NOT_FOUND_404) |
96 | 96 | ||
97 | // Torrents still use the old naming convention (video uuid + .torrent) | ||
97 | return res.sendFile(result.path, { maxAge: STATIC_MAX_AGE.SERVER }) | 98 | return res.sendFile(result.path, { maxAge: STATIC_MAX_AGE.SERVER }) |
98 | } | 99 | } |