Updated dependencies and version of library
More priority to contentType param
Fixes #368