mirror of
https://git.selfprivacy.org/SelfPrivacy/selfprivacy-rest-api.git
synced 2024-11-22 04:01:27 +00:00
Added UTF-8 encoding of strings
This commit is contained in:
parent
57b3cebe0a
commit
cc46c37c78
1
main.py
1
main.py
|
@ -20,6 +20,7 @@ def getDkimKey():
|
|||
catProcess = subprocess.Popen(["cat", "/var/dkim/" + domain + ".selector.txt"], stdout=subprocess.PIPE)
|
||||
dkim = catProcess.communicate()[0]
|
||||
dkim = base64.b64encode(dkim)
|
||||
dkim = str(dkim, 'utf-8')
|
||||
print(dkim)
|
||||
return "1" #jsonify(dkim)
|
||||
@app.route("/pythonVersion", methods=["GET"])
|
||||
|
|
Loading…
Reference in a new issue