Use the proper content-type

We should use the proper content-type `application/xml` instead of the default `text/html` here.

Backport requested.