Skip to content

Commit

Permalink
api/internal: allow redirects when reading chunks
Browse files Browse the repository at this point in the history
  • Loading branch information
dumbmoron committed Jan 29, 2025
1 parent 906d929 commit c48c642
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion api/src/stream/internal.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit c48c642

Please sign in to comment.