mirror of https://github.com/anoshenko/rui.git
Bug fixing
This commit is contained in:
parent
a471df2471
commit
27ebaf1bfe
|
@ -48,6 +48,7 @@ var upgrader = websocket.Upgrader{
|
||||||
}
|
}
|
||||||
|
|
||||||
func createSocketBridge(w http.ResponseWriter, req *http.Request) *wsBridge {
|
func createSocketBridge(w http.ResponseWriter, req *http.Request) *wsBridge {
|
||||||
|
upgrader.CheckOrigin = func(r *http.Request) bool { return true }
|
||||||
conn, err := upgrader.Upgrade(w, req, nil)
|
conn, err := upgrader.Upgrade(w, req, nil)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
ErrorLog(err.Error())
|
ErrorLog(err.Error())
|
||||||
|
|
Loading…
Reference in New Issue