Set content type in base options
Only set contentType header if type is JSON
Merge pull request #2 from OliverJAsh/oja-patch-3

Set content type in base options