fixes #2728; content-type header is not guaranteed to exist
Merge pull request #3750 from jrgm/issue-2728

fixes #2728; content-type header is not guaranteed to exist

Even though there are no tests for this, I am happy with the change. r+