added basic support for content type header.