Closed kravse closed 2 years ago
Resolves #25.
Looks like the content length of the string was not correctly matching with utf-8 encodings when special characters were involved.
I set a slightly stricter utf-8 encoding to the Content-Type, req.write() and use Buffer.byteLength for length rather than just javascripts length
Content-Type
req.write()
Buffer.byteLength
length
Should work with characters like € now.
€
Resolves #25.
Looks like the content length of the string was not correctly matching with utf-8 encodings when special characters were involved.
I set a slightly stricter utf-8 encoding to the
Content-Type
,req.write()
and useBuffer.byteLength
for length rather than just javascriptslength
Should work with characters like
€
now.