It's possible that the content-type header won't exist

In some cases (for example, on certain 500 errors) a content-type header won't be present