set correct content type on xml requests

fixes #1514 and #1516
Go with that.