Fail gracefully if not content-type header is given.
Merge pull request #16 from rfk/rfk/missing-content-type-header

Fail gracefully if not content-type header is given.