From a35aa2f5200dc0650995319a1ceb82051b38cac2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=88=98=E7=A5=A5=E8=B6=85?= Date: Wed, 1 Dec 2021 21:13:10 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E6=98=AF=E5=90=A6=E8=AE=B0?= =?UTF-8?q?=E5=BD=95499=E9=80=89=E9=A1=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- internal/nodes/http_request_log.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/internal/nodes/http_request_log.go b/internal/nodes/http_request_log.go index a8f197f..0dfc3a2 100644 --- a/internal/nodes/http_request_log.go +++ b/internal/nodes/http_request_log.go @@ -32,6 +32,11 @@ func (this *HTTPRequest) log() { return } + // 是否记录499 + if !ref.EnableClientClosed && this.writer.StatusCode() == 499 { + return + } + addr := this.RawReq.RemoteAddr index := strings.LastIndex(addr, ":") if index > 0 {