mirror of
https://github.com/xcat2/confluent.git
synced 2025-02-07 06:22:25 +00:00
Restore underscore headers
Eventlet has "helpfully" stopped supporting headers with underscores. Restore them since we want to support backwards compatibility and do not have the option to just ignore existing clients.
This commit is contained in:
parent
ebecc9c844
commit
f1f433041c
@ -623,6 +623,9 @@ def wsock_handler(ws):
|
||||
|
||||
|
||||
def resourcehandler(env, start_response):
|
||||
for hdr in env['headers_raw']:
|
||||
if hdr[0].startswith('CONFLUENT_'):
|
||||
env['HTTP_' + hdr[0]] = hdr[1]
|
||||
try:
|
||||
if 'HTTP_SEC_WEBSOCKET_VERSION' in env:
|
||||
for rsp in wsock_handler(env, start_response):
|
||||
|
Loading…
x
Reference in New Issue
Block a user