Skip to content

Fixed content-length computation for multipart-contents#82

Open
cy-fre wants to merge 1 commit intousnistgov:masterfrom
cy-fre:master
Open

Fixed content-length computation for multipart-contents#82
cy-fre wants to merge 1 commit intousnistgov:masterfrom
cy-fre:master

Conversation

@cy-fre
Copy link
Copy Markdown

@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