2
0
mirror of https://github.com/xcat2/confluent.git synced 2025-01-09 04:56:12 +00:00

Fix logic of websocket handling

Do not fall through to non-websocket path after handling the websocket
This commit is contained in:
Jarrod Johnson 2021-11-05 14:15:39 -04:00
parent b139f9cd2c
commit f1bc82cd08

View File

@ -478,8 +478,9 @@ def resourcehandler(env, start_response):
if 'HTTP_SEC_WEBSOCKET_VERSION' in env:
for rsp in wsock_handler(env, start_response):
yield rsp
for rsp in resourcehandler_backend(env, start_response):
yield rsp
else:
for rsp in resourcehandler_backend(env, start_response):
yield rsp
except Exception as e:
tracelog.log(traceback.format_exc(), ltype=log.DataTypes.event,
event=log.Events.stacktrace)