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