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:
parent
3ad53a3aac
commit
910af18a00
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user