mirror of
https://github.com/astaxie/beego.git
synced 2024-11-22 13:10:54 +00:00
update xml
This commit is contained in:
parent
bd61dd9ffc
commit
acadea6afa
@ -165,7 +165,7 @@ func (output *BeegoOutput) Jsonp(data interface{}, hasIndent bool) error {
|
|||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
func (output *BeegoOutput) Xml(data string, hasIndent bool) error {
|
func (output *BeegoOutput) Xml(data interface{}, hasIndent bool) error {
|
||||||
output.Header("Content-Type", "application/xml;charset=UTF-8")
|
output.Header("Content-Type", "application/xml;charset=UTF-8")
|
||||||
var content []byte
|
var content []byte
|
||||||
var err error
|
var err error
|
||||||
|
Loading…
Reference in New Issue
Block a user