From f9260fd1d050b078865f0febbdbb7aa44b4e67fb Mon Sep 17 00:00:00 2001 From: Illia Chub Date: Tue, 5 Jan 2021 13:09:23 +0200 Subject: [PATCH] Added response encoding --- main.py | 1 + 1 file changed, 1 insertion(+) 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)