diff --git a/main.py b/main.py index 057e853..be31519 100644 --- a/main.py +++ b/main.py @@ -19,6 +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 = str(dkim, "utf-8") dkim = base64.b64encode(dkim) print(dkim) return jsonify(dkim)