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

Perform correct length measurement for Python strings in HTTP request data #6590

Closed
wants to merge 4 commits into from

Conversation

goelbenj
Copy link

This PR addresses the problem detailed in #6586. The fix involves measuring the encoded byte-length of the string as per RFC 9910.

This PR includes two tests that verify the fix addresses the problem. Additionally, all tests pass locally, so no regressions have occurred.

bruceadams and others added 4 commits November 27, 2023 17:27
There are two tests here. One demonstrating existing, correct
behavior for `data=bytes`, and another, failing, test for the case
where `data=string` and the string contains multi-byte UTF-8.
@sigmavirus24
Copy link
Contributor

Closing as a duplicate of #6589

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

Successfully merging this pull request may close these issues.

3 participants