Websocket error

This commit is contained in:
marmei
2020-03-02 17:03:56 +01:00
parent dd911d6e5d
commit 534510a4ec

View File

@@ -333,6 +333,7 @@ func WS(w http.ResponseWriter, r *http.Request) {
if err != nil {
ShowError(err, 0)
http.Error(w, "Could not open websocket connection", http.StatusBadRequest)
return
}
setGlobalDomain(r.Host)