ded / reqwest

browser asynchronous http requests
2.94k stars 341 forks source link

Encode request data as JSON when Content-Type is set to application/json #238

Open danhardman opened 8 years ago

danhardman commented 8 years ago

The issue has been open for a while with a bunch of +1s so I thought I'd give it a go.

This is untested as npm test wasn't able to run, something to do with spawning phantomjs so if anyone could give me a hand figuring out how to test this properly that'd be great. However, it's a pretty simple change so everything should be good.

AWare commented 8 years ago

I got caught out by this issue today, this pr would be really helpful.

danhardman commented 8 years ago

@AWare This repo is dead, I recommend finding an alternative!