From 04a327ce9a0179fe525c35ca02f3f41d577f8f7d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=88=98=E7=A5=A5=E8=B6=85?= Date: Sun, 5 Dec 2021 16:55:33 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E6=BA=90=E7=AB=99=E4=B8=BB?= =?UTF-8?q?=E5=8A=A8=E5=85=B3=E9=97=AD=E8=BF=9E=E6=8E=A5=E6=97=B6=E6=97=A0?= =?UTF-8?q?=E6=B3=95=E7=BC=93=E5=AD=98=E5=86=85=E5=AE=B9=E7=9A=84Bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- internal/nodes/http_request_reverse_proxy.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/nodes/http_request_reverse_proxy.go b/internal/nodes/http_request_reverse_proxy.go index 47a362a..3b875f8 100644 --- a/internal/nodes/http_request_reverse_proxy.go +++ b/internal/nodes/http_request_reverse_proxy.go @@ -306,7 +306,7 @@ func (this *HTTPRequest) doReverseProxy() { } // 是否成功结束 - if err == nil && closeErr == nil { + if (err == nil || err == io.EOF) && (closeErr == nil || closeErr == io.EOF) { this.writer.SetOk() } }