iriscouch / browser-request

Browser library compatible with Node.js request package
Apache License 2.0
360 stars 102 forks source link

json:true writes to body even if there's nothing to write #52

Open guy-mograbi-at-gigaspaces opened 9 years ago

guy-mograbi-at-gigaspaces commented 9 years ago

when I mark json:true, I see the body is written.

this makes the code not compatible with node version. in node version I mark json:true to get the response as json. I don't send anything on the body, and I must not write anything on the body (the REST API I use fails if I do, as it expects an empty body).