xml: "application/xml, text/xml",
The culprit being this string: "/"
I don't have a patch and I wouldn't try to write my own JS parser. Maybe replacing the current implementation with a Rhino-based one is an option. Its available via Maven: