Tomás Pollak

Results 151 comments of Tomás Pollak

I see. Thanks for the input. Are you sure there aren't any redirects or proxies in the middle?

Aha, so there _is_ something in between. Would it be possible for you to try the request directly, without a VPN in between?

Happy to merge PRs if anyone's up to the task. :)

Hi @frzsombor, what version of Node and Needle are your running? IIRC there was an issue with the nonce that was fixed a few releases ago.

What response are you receiving from the endpoint? Can you try with `DEBUG=needle` to see what's going on behind the curtains?

I see. So what should we do in this case? Allow passing something like `multipart: 'raw'` to skip re-encoding, or include some other method of preventing these weird conversions to...

Are you sure the server is returning the JSON data in the correct format? Needle simply does a `JSON.parse` on the response data so I'm not sure if Needle's the...

Oh I see. I misunderstood then; I thought the problem was related the the decoding of JSON, not the encoding part. Ok I'll take a look in a while.

Ok, we can try and see whether adding the array item index [this line](https://github.com/tomas/needle/blob/master/lib/querystring.js#L29) makes it works like expected. The resulting encoded string would look like this (using your example...

Could you please add some tests? It looks to me this would break if the cookies header is empty...