set response_type to 'xml' if content-type is xml even if the
response is just whitespace.