mirror of
https://github.com/duanhf2012/origin.git
synced 2026-02-04 06:54:45 +08:00
Merge branch 'master' of https://github.com/duanhf2012/Origin
This commit is contained in:
@@ -197,6 +197,7 @@ func (slf *BaseMessageReciver) OnHandleHttp(w http.ResponseWriter, r *http.Reque
|
|||||||
conn, err := websocket.Upgrade(w, r, w.Header(), 1024, 1024)
|
conn, err := websocket.Upgrade(w, r, w.Header(), 1024, 1024)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
http.Error(w, "Could not open websocket connection", http.StatusBadRequest)
|
http.Error(w, "Could not open websocket connection", http.StatusBadRequest)
|
||||||
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
pclient := slf.WsServer.CreateClient(conn)
|
pclient := slf.WsServer.CreateClient(conn)
|
||||||
|
|||||||
Reference in New Issue
Block a user