mirror of
https://github.com/1f349/go-webdav.git
synced 2025-01-21 23:06:23 +00:00
internal: use application/xml instead of text/xml which is deprecated
This commit is contained in:
parent
381b8a3cee
commit
948f33c2fc
@ -50,7 +50,7 @@ func IsRequestBodyEmpty(r *http.Request) bool {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func ServeXML(w http.ResponseWriter) *xml.Encoder {
|
func ServeXML(w http.ResponseWriter) *xml.Encoder {
|
||||||
w.Header().Add("Content-Type", "text/xml; charset=\"utf-8\"")
|
w.Header().Add("Content-Type", "application/xml; charset=\"utf-8\"")
|
||||||
w.Write([]byte(xml.Header))
|
w.Write([]byte(xml.Header))
|
||||||
return xml.NewEncoder(w)
|
return xml.NewEncoder(w)
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user