technoweenie/node-scoped-http-client

Support for binary response body

Opened this issue · 0 comments

The code currently assumes that the body contains string data and just concatenates the chunks together. I don't know if there's a way to un-stringify the data after it's been concatenated like this, but it ends up creating useless data.
https://github.com/technoweenie/node-scoped-http-client/blob/master/src/index.coffee#L82-L84

It would be great if this code treated the body as binary and then provided the user to choose between the raw data or the stringified data.