mirror of
https://git.selfprivacy.org/SelfPrivacy/selfprivacy-rest-api.git
synced 2024-11-22 12:11:26 +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)
|
catProcess = subprocess.Popen(["cat", "/var/dkim/" + domain + ".selector.txt"], stdout=subprocess.PIPE)
|
||||||
dkim = catProcess.communicate()[0]
|
dkim = catProcess.communicate()[0]
|
||||||
dkim = base64.b64encode(dkim)
|
dkim = base64.b64encode(dkim)
|
||||||
|
dkim = str(dkim, 'utf-8')
|
||||||
print(dkim)
|
print(dkim)
|
||||||
return "1" #jsonify(dkim)
|
return "1" #jsonify(dkim)
|
||||||
@app.route("/pythonVersion", methods=["GET"])
|
@app.route("/pythonVersion", methods=["GET"])
|
||||||
|
|
Loading…
Reference in a new issue