We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Incorrect content-length in callback.js when body contains non-ascii characters
callback.js, line 46 is:
'Content-Length': data.length
callback.js, line 46 should be:
'Content-Length': Buffer.byteLength(data)
The text was updated successfully, but these errors were encountered:
You are right, the data object should be converted to a buffer first to determine the length of the content.
data
The RFC specifies that the content-length is specified as the number of octets (number of bytes) and not as the length of the string.
content-length
Would you be willing to provide a PR for this? I currently don't have a lot of time to spare..
Sorry, something went wrong.
Sure, will do it in few days!
dmonad
No branches or pull requests
Incorrect content-length in callback.js when body contains non-ascii characters
callback.js, line 46 is:
callback.js, line 46 should be:
The text was updated successfully, but these errors were encountered: