mirror of
https://github.com/Chocobozzz/PeerTube.git
synced 2025-02-25 18:55:32 -06:00
Add request body limit
This commit is contained in:
@@ -116,7 +116,8 @@ function downloadPlaylistSegments (playlistUrl: string, destinationDir: string,
|
||||
for (const fileUrl of fileUrls) {
|
||||
const destPath = join(tmpDirectory, basename(fileUrl))
|
||||
|
||||
await doRequestAndSaveToFile({ uri: fileUrl }, destPath)
|
||||
const bodyKBLimit = 10 * 1000 * 1000 // 10GB
|
||||
await doRequestAndSaveToFile({ uri: fileUrl }, destPath, bodyKBLimit)
|
||||
}
|
||||
|
||||
clearTimeout(timer)
|
||||
|
||||
Reference in New Issue
Block a user