1
0
mirror of https://github.com/janeczku/calibre-web synced 2024-12-25 09:30:31 +00:00

fix: change b64-encoded token to unicode string

This commit is contained in:
eggy 2024-05-02 03:06:53 -04:00
parent becb84a73d
commit b1d7badef4

View File

@ -30,7 +30,7 @@ log = logger.create()
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.