Tomás Pollak
Tomás Pollak
Thanks for the _very_ detailed bug report! This seems to be partially related to #251. Are you up for submitting a PR?
How would you update the current implementation to handle this correctly?
Needle does not depend on `request`, but directly on Node's `http` module. I'd love to support Unix sockets so feel free to send a PR!
In that case don't pass `json: true` and pass `JSON.stringify(data)` instead of `data`.
How are you using it?
The first version returns a Promise. The second one returns a readable stream.
If you're making a GET request, then yes, data object is transformed into a query string and appended to the URL, _unless_ the `json` option is set to `true`.
Good catch. Go ahead!
@centigrade-thomas-becker You probably figured it out already, but you can pass an argument to `stream.read()` which determines the amount of data that is read from the stream. I believe you...
Does it need to be both multipart AND json at the same time? Try without one or the other. On Mar 26, 2017 9:32 AM, "Kequc" wrote: > I am...