Make body.json() not get called if body.text() is called otherwise we get an error. In addition allow for specifying the 'Accept' header with the type 'application/json' in the event that you need to send data in a form other then JSON but expect a JSON response.
Make body.json() not get called if body.text() is called otherwise we get an error. In addition allow for specifying the 'Accept' header with the type 'application/json' in the event that you need to send data in a form other then JSON but expect a JSON response.

http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html - Accept Header Ref

niftylettuce/frisbee,glazedio/frisbee,crocodilejs/frisbee,niftylettuce/frisbee,joinspontaneous/frisbee