Infer the content type of a request