Skip to content

disallow range -0 - #3255

Merged
davidism merged 1 commit into
stablefrom
fix-range-suffix-zero
Aug 21, 2026
Merged

davidism merged 1 commit into
stablefrom
fix-range-suffix-zero

Conversation

@davidism

Copy link
Copy Markdown
Member

When parsing Range: bytes=-0, -0 gets recognized as a suffix length, but then Python parses -0 to 0. -0 is an invalid suffix length, so return None

@davidism davidism added this to the 3.1.9 milestone Aug 21, 2026
@davidism
davidism merged commit 263f5ca into stable Aug 21, 2026
14 checks passed
@davidism
davidism deleted the fix-range-suffix-zero branch August 21, 2026 22:15
@github-actions github-actions Bot locked as resolved and limited conversation to collaborators Sep 5, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant