status: fix xml output

This commit is contained in:
2025-10-15 18:09:21 +02:00
parent 23a7f310c5
commit 19902813b5
2 changed files with 9 additions and 6 deletions

View File

@@ -211,7 +211,9 @@ func WriteXml(data any, res http.ResponseWriter) {
res.WriteHeader(500)
} else {
res.Header().Add("size", fmt.Sprint(len(xmlData)))
res.Write([]byte("<resultlist>"))
res.Write(xmlData)
res.Write([]byte("</resultlist>"))
}
}