Added xml header format.

This commit is contained in:
Wong Her Laang 2018-01-27 11:49:58 +08:00
parent b8cdc32174
commit 7539b3735f

View file

@ -180,6 +180,7 @@ func reportXML(w io.Writer, data *reportInfo) error {
panic(err) panic(err)
} }
raw = append([]byte("<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n"), raw...)
_, err = w.Write(raw) _, err = w.Write(raw)
if err != nil { if err != nil {
panic(err) panic(err)