set correct content type on xml requests

fixes #1514 and #1516
Are there any ajax requests that have a content type other than `xml`?