Add method for getting content type from Content-Type header

* Needed for unit tests primarily