Skip to content

Commit

Permalink
Optimization error handling
Browse files Browse the repository at this point in the history
  • Loading branch information
dollarkillerx committed Oct 12, 2019
1 parent 33a4dd2 commit f192536
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion content.go
Expand Up @@ -64,7 +64,6 @@ func (c *Context) Json(code int, msg interface{}) (int, error) {
// 返回[]byte
func (c *Context) Write(code int, msg []byte) (int, error) {
c.Ctx.SetStatusCode(code)
c.Ctx.SetContentType("application/json")
return c.Ctx.Write(msg)
}

Expand Down

0 comments on commit f192536

Please sign in to comment.