Closed mafintosh closed 11 years ago
When logging utf-8 data the module currently responds with the following error:
client.log({hellå:wårld}); // --> { [Error: Parse Error] bytesParsed: 166, code: 'HPE_INVALID_CONSTANT' }
This PR fixes this by using Buffer.byteLength(msg) instead of msg.length for content-length.
Buffer.byteLength(msg)
msg.length
@mafintosh good looks, thanks!
Yeah, mafintosh is very good oooking :)
When logging utf-8 data the module currently responds with the following error:
This PR fixes this by using
Buffer.byteLength(msg)
instead ofmsg.length
for content-length.