From 16370a236f88c824961b032712e5614848177296 Mon Sep 17 00:00:00 2001 From: qydysky Date: Tue, 8 Oct 2024 09:35:55 +0800 Subject: [PATCH] Update ws.go --- ws.go | 1 - 1 file changed, 1 deletion(-) diff --git a/ws.go b/ws.go index 7fcf935..273cb78 100644 --- a/ws.go +++ b/ws.go @@ -101,7 +101,6 @@ func (wsDealer) Deal(ctx context.Context, w http.ResponseWriter, r *http.Request } else if !ok { logger.Warn(`W:`, fmt.Sprintf(errFormat, r.RemoteAddr, chosenBack.route.config.Addr, routePath, chosenBack.Name, ErrHeaderCheckFail, time.Since(opT))) w.Header().Add(header+"Error", ErrHeaderCheckFail.Error()) - w.WriteHeader(http.StatusForbidden) return ErrHeaderCheckFail } -- 2.39.2