change AbortWithStatus,delete c.Writer.WriteHeaderNow()

This commit is contained in:
liuxuewen 2017-12-06 09:57:16 +08:00
parent 9e895470dd
commit 6552fa127e
2 changed files with 2 additions and 1 deletions

1
.gitignore vendored
View File

@ -2,3 +2,4 @@ vendor/*
!vendor/vendor.json
coverage.out
count.out
.idea/

View File

@ -125,7 +125,7 @@ func (c *Context) Abort() {
// For example, a failed attempt to authenticate a request could use: context.AbortWithStatus(401).
func (c *Context) AbortWithStatus(code int) {
c.Status(code)
c.Writer.WriteHeaderNow()
//c.Writer.WriteHeaderNow()
c.Abort()
}