From cc46c37c7861e7565bd5fb7170eef30ac2fec1d3 Mon Sep 17 00:00:00 2001 From: Illia Chub Date: Tue, 5 Jan 2021 13:35:33 +0200 Subject: [PATCH] Added UTF-8 encoding of strings --- main.py | 1 + 1 file changed, 1 insertion(+) diff --git a/main.py b/main.py index 4fb1e42..99cc3a8 100644 --- a/main.py +++ b/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"])