RisingStack / trace-nodejs

Trace is a visualised distributed tracing platform designed for microservices.
https://trace.risingstack.com
Other
471 stars 90 forks source link

Fix: content-length header value #118

Closed jbpionnier closed 8 years ago

jbpionnier commented 8 years ago

This length is not the same as string length, since many characters require more bytes to encode. For example:

var snowman = "☃";
snowman.length
// 1
Buffer.byteLength(snowman)
// 3
dszakallas commented 8 years ago

Your changes have been applied to master. Thanks!