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

diff --git a/ws.go b/ws.go
index 7fcf935ee2a1b4f614914be00591c27688930518..273cb7824f4d8d2e86add9cdcda532adfc41b8ee 100644 (file)
--- 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
        }