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:
parent
b139f9cd2c
commit
f1bc82cd08
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user