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

Handle UTF-8 multibyte sequences in node #13

Merged
merged 1 commit into from
Sep 21, 2014

Conversation

mathbruyen
Copy link

Content-length header was set to the length of the string, which does not take into account multibyte sequences in UTF-8 strings. Now converts first to a buffer to get the proper length.

Content-length header was set to the length of the string, which
does not take into account multibyte sequences in UTF-8 strings.

Now converts first to a buffer to get the proper length.
mzabriskie added a commit that referenced this pull request Sep 21, 2014
Handle UTF-8 multibyte sequences in node
@mzabriskie mzabriskie merged commit c0201fd into axios:master Sep 21, 2014
@mathbruyen mathbruyen deleted the utf8_content_length branch September 21, 2014 22:00
@axios axios locked and limited conversation to collaborators May 4, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants