Properly parse the content type header to extract the format.