From c516819c56fac85abd82a2991b0b699c196b07ee Mon Sep 17 00:00:00 2001 From: Yongzheng Lai Date: Fri, 28 Aug 2015 16:54:49 +0800 Subject: [PATCH] Update error.go this caused `http: multiple response.WriteHeader calls` when using method `CustomAbort` or `Abort` when status is already in errMap like 404. --- error.go | 1 - 1 file changed, 1 deletion(-) diff --git a/error.go b/error.go index 99a1fcf3..21768cdb 100644 --- a/error.go +++ b/error.go @@ -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 }