merge: api updates from main

This commit is contained in:
wukko 2025-01-30 16:47:21 +06:00
commit fd1a7530ed
No known key found for this signature in database
GPG Key ID: 3E30B3F26C7B4AA2

View File

@ -19,7 +19,8 @@ async function* readChunks(streamInfo, size) {
Range: `bytes=${read}-${read + CHUNK_SIZE}` Range: `bytes=${read}-${read + CHUNK_SIZE}`
}, },
dispatcher: streamInfo.dispatcher, dispatcher: streamInfo.dispatcher,
signal: streamInfo.controller.signal signal: streamInfo.controller.signal,
maxRedirections: 4
}); });
if (chunk.statusCode === 403 && chunksSinceTransplant >= 3 && streamInfo.transplant) { if (chunk.statusCode === 403 && chunksSinceTransplant >= 3 && streamInfo.transplant) {