Cosmetic changes in render
This commit is contained in:
+3
-1
@@ -9,7 +9,9 @@ type XML struct {
|
||||
Data interface{}
|
||||
}
|
||||
|
||||
const xmlContentType = "application/xml; charset=utf-8"
|
||||
|
||||
func (r XML) Write(w http.ResponseWriter) error {
|
||||
w.Header().Set("Content-Type", "application/xml; charset=utf-8")
|
||||
w.Header().Set("Content-Type", xmlContentType)
|
||||
return xml.NewEncoder(w).Encode(r.Data)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user