During encryption password is converted to buffer (instead of
bytearray), and that is causing the issue in Python 2.
This was regress of commit-id: 37e2e1d24b
pull/3/head
parent
37e2e1d24b
commit
7d08e42bbe
|
@ -1049,7 +1049,10 @@ class ServerManager(object):
|
||||||
|
|
||||||
res = dict()
|
res = dict()
|
||||||
res['sid'] = self.sid
|
res['sid'] = self.sid
|
||||||
res['password'] = self.password.decode('utf-8')
|
if hasattr(self.password, 'decode'):
|
||||||
|
res['password'] = self.password.decode('utf-8')
|
||||||
|
else:
|
||||||
|
res['password'] = str(self.password)
|
||||||
|
|
||||||
connections = res['connections'] = dict()
|
connections = res['connections'] = dict()
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue