Check for content-type in headers

Not every server is well behaved enough to send a content-type
Merge pull request #5 from ben-ng/patch-1

Check for content-type in headers