mirror of https://gitlab.com/litecord/litecord.git
gateway: allow "8" in url params
This commit is contained in:
parent
fa937825df
commit
bf3b1748b0
|
|
@ -38,7 +38,7 @@ async def websocket_handler(app, ws, url):
|
||||||
except (KeyError, IndexError):
|
except (KeyError, IndexError):
|
||||||
gw_encoding = "json"
|
gw_encoding = "json"
|
||||||
|
|
||||||
if gw_version not in ("6", "7"):
|
if gw_version not in ("6", "7", "8"):
|
||||||
return await ws.close(1000, "Invalid gateway version")
|
return await ws.close(1000, "Invalid gateway version")
|
||||||
|
|
||||||
if gw_encoding not in ("json", "etf"):
|
if gw_encoding not in ("json", "etf"):
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue