From 80de61d24a0f9ebd8da8581a763eb4f9e859aa82 Mon Sep 17 00:00:00 2001 From: Trevor Sawler Date: Wed, 14 Jun 2023 11:15:49 -0300 Subject: [PATCH] Formatting --- tools.go | 1 + 1 file changed, 1 insertion(+) diff --git a/tools.go b/tools.go index 8aa1245..4e3642a 100644 --- a/tools.go +++ b/tools.go @@ -380,6 +380,7 @@ func (t *Tools) WriteXML(w http.ResponseWriter, status int, data interface{}, he // treated as the same, so we'll just pick one. w.Header().Set("Content-Type", "application/xml") w.WriteHeader(status) + // Add the XML header. xmlOut := []byte(xml.Header + string(out)) _, _ = w.Write(xmlOut)