set content type to json if you're sending json.
Merge pull request #9 from JensTimmerman/patch-2

set content type to json if you're sending json.