mirror of
https://github.com/xcat2/confluent.git
synced 2024-11-22 17:43:14 +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:
parent
2e04647c95
commit
bf00c75f43
@ -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:', '')
|
||||
|
Loading…
Reference in New Issue
Block a user