Always attempt to set the content-type

Fixes #401