From acadea6afab12736b9029e26520b994b4b2cc9dc Mon Sep 17 00:00:00 2001 From: astaxie Date: Tue, 10 Sep 2013 00:02:22 +0800 Subject: [PATCH] update xml --- context/output.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/context/output.go b/context/output.go index eb8b1c35..f010c896 100644 --- a/context/output.go +++ b/context/output.go @@ -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