forked from kenzuya/unshackle
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.