1
0
mirror of https://github.com/astaxie/beego.git synced 2024-11-25 19:00:55 +00:00

update xml

This commit is contained in:
astaxie 2013-09-10 00:02:22 +08:00
parent bd61dd9ffc
commit acadea6afa

View File

@ -165,7 +165,7 @@ func (output *BeegoOutput) Jsonp(data interface{}, hasIndent bool) error {
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")
var content []byte
var err error