-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Labels
Comments
This was referenced May 3, 2024
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
Describe the incorrect behavior you saw
The
twisted.web.http.HTTPClient
protocol accept invalid integers for theContent-Length
header, such as+1
. (It also suffers from the issue described in #9064, but we shouldn't bother fixing that because ofDescribe the correct behavior you'd like to see
Reject invalid values. See the tests and
_decint
function introduced in #735.The text was updated successfully, but these errors were encountered: