fix for #12

fixes issue 12 by specifying a content type of application/json for the content
Merge pull request #13 from paulduran/patch-2

fix for #12