implement content-type handling
Merge pull request #2 from scalp42/content_type

allow to override content-type