handling bad content type header