|
@@ -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))
|