chore: update some code style (#2356)

This commit is contained in:
thinkerou
2020-05-05 13:55:57 +08:00
committed by GitHub
parent 54175dbe72
commit 6ac7f194c4
5 changed files with 11 additions and 11 deletions
+1 -1
View File
@@ -865,7 +865,7 @@ func (c *Context) IndentedJSON(code int, obj interface{}) {
// Default prepends "while(1)," to response body if the given struct is array values.
// It also sets the Content-Type as "application/json".
func (c *Context) SecureJSON(code int, obj interface{}) {
c.Render(code, render.SecureJSON{Prefix: c.engine.secureJsonPrefix, Data: obj})
c.Render(code, render.SecureJSON{Prefix: c.engine.secureJSONPrefix, Data: obj})
}
// JSONP serializes the given struct as JSON into the response body.