Open denhub opened 4 years ago
Any comments? A year has passed :-)
https://nodejs.org/api/http.html#requestwritechunk-encoding-callback
The encoding argument is optional and only applies when chunk is a string. Defaults to 'utf8'.
So why you don't use binary buffer for a binary data?
Hello!
Thanks for Restify - it's absolutely cool!
I found a bug in the function
sendRaw
- when you try to send noneutf8
data in response - you can't do it. Data always will be encoded to utf-8.I use charSet - to set
latin1
encoding for sendingansi
mp3-file.But it's take affect only for
Content-Type
field.Cause
In
response.js
does not send second paramencoding
to httpwrite
method. Http Docs. https://github.com/restify/node-restify/blob/9153587c023a876237c1d8bc7491fee4984d9074/lib/response.js#L874Are you willing and able to fix this?
Yes I can.