From: qydysky Date: Tue, 8 Oct 2024 01:35:55 +0000 (+0800) Subject: Update ws.go X-Git-Tag: v0.1.20241008013736 X-Git-Url: http://127.0.0.1:8081/?a=commitdiff_plain;h=16370a236f88c824961b032712e5614848177296;p=front%2F.git Update ws.go --- 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 }