Better detection of the content-type in the API explorer