mirror of
https://github.com/unshackle-dl/unshackle.git
synced 2026-11-12 12:05:07 +00:00
The rnet branch zeroed content_length only for gzip/deflate/br, so an unknown coding (zstd, future tokens) kept a bogus length and, worse, the drop-the-partial-instead-of-Range-resuming guard could never fire on the rnet path because content_encoded stayed False. Use the same fail-closed _is_content_encoded check the requests branch uses.