Update error.go

this caused `http: multiple response.WriteHeader calls` when using method `CustomAbort` or `Abort` when status is already in errMap like 404.
This commit is contained in:
Yongzheng Lai 2015-08-28 16:54:49 +08:00
parent 4202fe8fe0
commit c516819c56
1 changed files with 0 additions and 1 deletions

View File

@ -453,7 +453,6 @@ func exception(errcode string, ctx *context.Context) {
func executeError(err *errorInfo, ctx *context.Context, code int) {
if err.errorType == errorTypeHandler {
ctx.ResponseWriter.WriteHeader(code)
err.handler(ctx.ResponseWriter, ctx.Request)
return
}