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)