Decode masgpack hash key values as byte
This commit is contained in:
parent
c7b4e28f82
commit
6e5bf5fef6
1 changed files with 2 additions and 2 deletions
|
@ -65,7 +65,7 @@ def objectDecoderHook(obj):
|
|||
for key, val in obj:
|
||||
if type(key) is bytes:
|
||||
key = key.decode("utf8")
|
||||
if key in bin_value_keys or type(val) is not bytes:
|
||||
if key in bin_value_keys or type(val) is not bytes or len(key) >= 64:
|
||||
back[key] = val
|
||||
else:
|
||||
back[key] = val.decode("utf8")
|
||||
|
|
Loading…
Reference in a new issue