From 0c561a9dafe08e42e375a2db931f9c32df99d37f Mon Sep 17 00:00:00 2001 From: myml Date: Fri, 26 Aug 2022 16:05:43 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E5=88=A4=E6=96=AD=E6=98=AF=E5=90=A6?= =?UTF-8?q?=E5=B7=B2=E7=BB=8F=E5=A4=84=E7=90=86=E9=94=99=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- error_handle.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/error_handle.go b/error_handle.go index eaa4e67..daaa819 100644 --- a/error_handle.go +++ b/error_handle.go @@ -81,7 +81,7 @@ func ErrorHandle(logger *zap.Logger, customHandle func(c *gin.Context, err error zap.Error(err), ) } - if c.Writer.Status() != 0 { + if c.Writer.Status() != http.StatusOK { return }