mirror of
https://github.com/imputnet/cobalt.git
synced 2026-04-28 23:09:31 -05:00
api/internal: allow redirects when reading chunks
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user