mirror of
https://github.com/Chocobozzz/PeerTube.git
synced 2025-10-04 02:09:37 +02:00
Cleanup
This commit is contained in:
parent
f66db4d5c8
commit
8efc27bf14
13 changed files with 23 additions and 21 deletions
|
@ -94,5 +94,6 @@ async function getTorrent (req: express.Request, res: express.Response) {
|
|||
const result = await VideosTorrentCache.Instance.getFilePath(req.params.filename)
|
||||
if (!result) return res.sendStatus(HttpStatusCode.NOT_FOUND_404)
|
||||
|
||||
// Torrents still use the old naming convention (video uuid + .torrent)
|
||||
return res.sendFile(result.path, { maxAge: STATIC_MAX_AGE.SERVER })
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue