Nicer way of getting content-type