added check for already existing content-type header
bugfix
Merge pull request #24 from sclausen/master

added check for already existing content-type header