Skip to content

Conversation

@hebaceous
Copy link

@garronej
Copy link
Contributor

garronej commented Jun 8, 2017

Hi @hebaceous,

Have you tested this ?

If you want to support utf8 encoding it's not enough just to replace "ascii" by "utf8".

See the content-length does not refer to the number of character but to the number of byte.

As long as we work with asscii one character equal one byte so it is easy.
But in utf8 the body "✓" for exemple will be content-length: 3

Long story short look at this PR: #120

@hebaceous
Copy link
Author

hebaceous commented Jun 9, 2017 via email

@garronej
Copy link
Contributor

@hebaceous,

Even tho this fix had been working in your use case it is still incomplete/broken for the reasons that I gave earlier.

This PR should not be merged.

Respectuflly,

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.

2 participants