Added response encoding

This commit is contained in:
Illia Chub 2021-01-05 12:48:10 +02:00
parent 9dd3c4f33b
commit 7af2affaa8

View file

@ -19,7 +19,7 @@ def getDkimKey():
domain = domain.rstrip("\n")
catProcess = subprocess.Popen(["cat", "/var/dkim/" + domain + ".selector.txt"], stdout=subprocess.PIPE)
dkim = catProcess.communicate()[0]
dkim = base64.b64encode(dkim.encode());
dkim = base64.b64encode(dkim)
print(dkim)
return jsonify(dkim)
@app.route("/pythonVersion", methods=["GET"])