浏览代码

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

bvbej 2 年之前
父节点
当前提交
658aa0d2a9
共有 1 个文件被更改,包括 0 次插入1 次删除
  1. 0 1
      pkg/websocket/peer/connect/acceptor.go

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

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