2
0
mirror of https://github.com/xcat2/confluent.git synced 2024-11-26 11:30:23 +00:00

Specify supported protocols to be confluent.console

Eventlet will return no supported protocols if
none are specified. Firefox doesn't care, but
chrome rejects such a reply.
This commit is contained in:
Jarrod Johnson 2021-04-22 07:44:18 -04:00
parent 2e04647c95
commit bf00c75f43

View File

@ -381,7 +381,8 @@ def _assign_consessionid(consolesession):
'expiry': time.time() + 60}
return sessid
@eventlet.websocket.WebSocketWSGI
@eventlet.websocket.WebSocketWSGI.configured(
supported_protocols=['confluent.console'])
def wsock_handler(ws):
sessid = ws.wait()
sessid = sessid.replace('ConfluentSessionId:', '')