Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

t.w.h.HTTPClient parses Content-Length laxly #12159

Open
twm opened this issue May 3, 2024 · 1 comment
Open

t.w.h.HTTPClient parses Content-Length laxly #12159

twm opened this issue May 3, 2024 · 1 comment
Labels

Comments

@twm
Copy link
Contributor

twm commented May 3, 2024

Describe the incorrect behavior you saw

The twisted.web.http.HTTPClient protocol accept invalid integers for the Content-Length header, such as +1. (It also suffers from the issue described in #9064, but we shouldn't bother fixing that because of

Describe the correct behavior you'd like to see

Reject invalid values. See the tests and _decint function introduced in #735.

@adiroiban
Copy link
Member

Do we want to fix this, or just deprecate the code?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants