adding checking for content-type in responses
allow response default content types to be configurable