GRAILS-9190 - improve content type checking

accept text/json, application/json, text/xml and application/xml