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

Fixed content-length computation for multipart-contents #82

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

cy-fre
Copy link

@cy-fre cy-fre commented Mar 28, 2023

Added missing UTF-8 charset handling when calculating the length of a multipart content as it is also done when computing the length of a single content.
This fixes severe Content-Length issues when wrong encoded UTF-8 characters are used in content. When sending such characters by using the getRawContent() method they may be expanded from one to two bytes and the Content-Length would be wrong.

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.

1 participant