Skip to content

Commit

Permalink
set strict_map_key=False when unpack
Browse files Browse the repository at this point in the history
  • Loading branch information
0xGosu committed Apr 22, 2020
1 parent ebb4d41 commit 894dfa3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion nameko_django/serializer.py
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,8 @@ def dumps(o):
def loads(s):
if not isinstance(s, string_types):
s = bytes(s)
r = unpackb(s, ext_hook=django_ext_hook, object_hook=decode_dict_object, list_hook=decode_list_object, raw=False)
r = unpackb(s, ext_hook=django_ext_hook, object_hook=decode_dict_object, list_hook=decode_list_object,
raw=False, strict_map_key=False)
if isinstance(r, string_types):
return decode_single_object(r)
else:
Expand Down

0 comments on commit 894dfa3

Please sign in to comment.