Commit 306effa3 authored by astaxie's avatar astaxie

Merge pull request #1329 from ElvizLai/patch-1

Update error.go
parents 4202fe8f c516819c
......@@ -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
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment