From 7af2affaa85ce11befbd8899417bdb01032f237f Mon Sep 17 00:00:00 2001 From: Illia Chub Date: Tue, 5 Jan 2021 12:48:10 +0200 Subject: [PATCH] Added response encoding --- main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.py b/main.py index 82c9218..057e853 100644 --- a/main.py +++ b/main.py @@ -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"])