Browse Source

[add] 修复ws升级报错日志~

bvbej 2 years ago
parent
commit
ace1db6f0f
1 changed files with 0 additions and 1 deletions
  1. 0 1
      pkg/websocket/peer/connect/acceptor.go

+ 0 - 1
pkg/websocket/peer/connect/acceptor.go

@@ -48,7 +48,6 @@ func (ws *wsAcceptor) Start(addr string, sessMgr *peer.SessionManager) error {
 		if upgradeErr != nil {
 			ws.logger.Sugar().Errorf("upgrade http failed: %s", upgradeErr)
 			w.WriteHeader(http.StatusNotFound)
-			_, _ = w.Write([]byte(http.StatusText(http.StatusNotFound)))
 			return
 		}
 		sessMgr.Register <- peer.NewSession(newConnection(c, sessMgr))