Infer the content type if a request