mirror of
https://github.com/wukko/cobalt.git
synced 2025-02-08 19:56:34 +01:00
api/internal: allow redirects when reading chunks
This commit is contained in:
parent
906d929333
commit
c48c64240b
1 changed files with 2 additions and 1 deletions
|
@ -19,7 +19,8 @@ async function* readChunks(streamInfo, size) {
|
|||
Range: `bytes=${read}-${read + CHUNK_SIZE}`
|
||||
},
|
||||
dispatcher: streamInfo.dispatcher,
|
||||
signal: streamInfo.controller.signal
|
||||
signal: streamInfo.controller.signal,
|
||||
maxRedirections: 4
|
||||
});
|
||||
|
||||
if (chunk.statusCode === 403 && chunksSinceTransplant >= 3 && streamInfo.transplant) {
|
||||
|
|
Loading…
Reference in a new issue