]> 127.0.0.1 Git - front/.git/commitdiff
Update http.go v0.1.20241008010843
authorqydysky <qydysky@foxmail.com>
Tue, 8 Oct 2024 01:07:10 +0000 (09:07 +0800)
committerGitHub <noreply@github.com>
Tue, 8 Oct 2024 01:07:10 +0000 (09:07 +0800)
http.go

diff --git a/http.go b/http.go
index 1311e77e69f5c1278cf87c3571c7b0dbb8b5bfa2..1a600fccb89e12e8def2291283747e8680b72bc7 100644 (file)
--- a/http.go
+++ b/http.go
@@ -114,7 +114,6 @@ func (httpDealer) Deal(ctx context.Context, w http.ResponseWriter, r *http.Reque
        } else if !ok {
                logger.Warn(`W:`, fmt.Sprintf(logFormat, r.RemoteAddr, chosenBack.route.config.Addr, routePath, chosenBack.Name, "BLOCK", ErrHeaderCheckFail, time.Since(opT)))
                w.Header().Add(header+"Error", ErrHeaderCheckFail.Error())
-               w.WriteHeader(http.StatusForbidden)
                return ErrHeaderCheckFail
        }