Use the proper content-type

We should use the proper content-type `application/xml` instead of the default `text/html` here.

Backport requested.
Merge pull request #7231 from owncloud/proper-content-type

Use the proper content-type