This commit is contained in:
youngsterxyf 2016-02-01 22:39:41 +08:00
parent 09193213a0
commit da38cbfe41
1 changed files with 1 additions and 0 deletions

View File

@ -424,6 +424,7 @@ 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
}