mirror of
https://github.com/janeczku/calibre-web
synced 2024-12-27 02:20:31 +00:00
fix: change b64-encoded token to unicode string
This commit is contained in:
parent
becb84a73d
commit
b1d7badef4
@ -30,7 +30,7 @@ log = logger.create()
|
|||||||
|
|
||||||
|
|
||||||
def b64encode_json(json_data):
|
def b64encode_json(json_data):
|
||||||
return b64encode(json.dumps(json_data).encode())
|
return b64encode(json.dumps(json_data).encode()).decode("utf-8")
|
||||||
|
|
||||||
|
|
||||||
# Python3 has a timestamp() method we could be calling, however it's not avaiable in python2.
|
# Python3 has a timestamp() method we could be calling, however it's not avaiable in python2.
|
||||||
|
Loading…
Reference in New Issue
Block a user