mirror of
https://git.selfprivacy.org/SelfPrivacy/selfprivacy-rest-api.git
synced 2024-11-25 21:41:27 +00:00
Added response encoding
This commit is contained in:
parent
7af2affaa8
commit
f9260fd1d0
1
main.py
1
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)
|
||||
|
|
Loading…
Reference in a new issue