exceptionless / Exceptionless.JavaScript

Exceptionless JavaScript client
http://exceptionless.com
Apache License 2.0
59 stars 24 forks source link

Update 'Content-Length' value for fix characters missing #64

Closed EthianWong closed 7 years ago

EthianWong commented 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

CLAassistant commented 7 years ago

CLA assistant check
All committers have signed the CLA.

niemyjski commented 7 years ago

Thanks a ton, I'll review these changes tomorrow!

niemyjski commented 7 years ago

This is a duplicate of #65