From: qydysky Date: Tue, 8 Oct 2024 01:07:10 +0000 (+0800) Subject: Update http.go X-Git-Tag: v0.1.20241008010843 X-Git-Url: http://127.0.0.1:8081/?a=commitdiff_plain;h=649809fcab4ba1040c131c4b158ec1ab965c69ee;p=front%2F.git Update http.go --- diff --git a/http.go b/http.go index 1311e77..1a600fc 100644 --- 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 }