Closed EthianWong closed 7 years ago
In other languages (Chinese , Japanese .... ) One word maybe use two or three bytes ...
var a = "我爱你"; console.log(a.length); //3 console.log(new Buffer(a).length); //9
So you should use new Buffer for set "Content-Length" and this problem will be resolve
All committers have signed the CLA.
Thanks a ton, I'll review these changes tomorrow!
This is a duplicate of #65
In other languages (Chinese , Japanese .... ) One word maybe use two or three bytes ...
So you should use new Buffer for set "Content-Length" and this problem will be resolve