Skip to content

Commit

Permalink
Write xml header to the response
Browse files Browse the repository at this point in the history
  • Loading branch information
francesconi committed Feb 20, 2025
1 parent 5aa8eb8 commit e55b6dd
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions routing.go
Original file line number Diff line number Diff line change
Expand Up @@ -213,6 +213,7 @@ func (router *Router) ServeHTTP(w http.ResponseWriter, r *http.Request) {
}

w.Header().Set("Content-Type", "application/xml; charset=utf-8")
w.Write([]byte(xml.Header))
w.Write(b)
}

Expand Down

0 comments on commit e55b6dd

Please sign in to comment.