set correct content type on xml requests

fixes #1514 and #1516
Yeah. The whole thing started because I removed something quite vague that set a global variable for that. Now everything sort of surfaces up...

Better I think to ask for `application/xml` where you require it, no?