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

Fix http websockify

This commit is contained in:
Jarrod Johnson 2024-09-30 13:57:09 -04:00
parent 3ad53a3aac
commit 910af18a00

View File

@ -445,6 +445,8 @@ def websockify_data(data):
data = data.decode('utf8')
except UnicodeDecodeError:
data = data.decode('cp437')
except AttributeError: # already str
pass
data = u' ' + data
return data