|
@@ -83,7 +83,7 @@ def get_hash(route):
|
|
assert data['encoding'] == 'base64', f"unsupported encoding: {data['encoding']}"
|
|
assert data['encoding'] == 'base64', f"unsupported encoding: {data['encoding']}"
|
|
data = b64decode(data['data'] + '==')
|
|
data = b64decode(data['data'] + '==')
|
|
elif route == 'code':
|
|
elif route == 'code':
|
|
- data = dumps(loads(body['data']), sort_keys=True)
|
|
|
|
|
|
+ data = dumps(loads(body['data']), sort_keys=True).encode('utf-8')
|
|
else:
|
|
else:
|
|
data = data.encode('utf-8')
|
|
data = data.encode('utf-8')
|
|
|
|
|