1
0
mirror of https://github.com/labstack/echo.git synced 2025-07-17 01:43:02 +02:00

fixed json, xml pretty print

Signed-off-by: Vishal Rana <vr@labstack.com>
This commit is contained in:
Vishal Rana
2016-12-09 11:13:55 -08:00
parent 133f7acf21
commit 20954afd66
3 changed files with 31 additions and 1 deletions

View File

@ -427,7 +427,7 @@ func (c *context) XMLPretty(code int, i interface{}, indent string) (err error)
if err != nil {
return
}
return c.JSONBlob(code, b)
return c.XMLBlob(code, b)
}
func (c *context) XMLBlob(code int, b []byte) (err error) {