forked from SelfPrivacy/selfprivacy-rest-api
Added UTF-8 encoding of strings
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 New Issue