internal: use application/xml instead of text/xml which is deprecated

This commit is contained in:
Thomas Müller 2024-04-11 17:14:21 +02:00 committed by Simon Ser
parent 381b8a3cee
commit 948f33c2fc

View File

@ -50,7 +50,7 @@ func IsRequestBodyEmpty(r *http.Request) bool {
}
func ServeXML(w http.ResponseWriter) *xml.Encoder {
w.Header().Add("Content-Type", "text/xml; charset=\"utf-8\"")
w.Header().Add("Content-Type", "application/xml; charset=\"utf-8\"")
w.Write([]byte(xml.Header))
return xml.NewEncoder(w)
}