Skip to content

Commit

Permalink
Merge pull request #109 from tsawler/development
Browse files Browse the repository at this point in the history
Formatting
  • Loading branch information
tsawler authored Jun 14, 2023
2 parents f7c6454 + 80de61d commit a16bec2
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions tools.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit a16bec2

Please sign in to comment.