Fixed content type header stuff. fixes #16