1
0
mirror of https://github.com/mail-in-a-box/mailinabox.git synced 2025-04-19 02:42:15 +00:00

Clean up return

This commit is contained in:
Victor Lap 2020-11-15 22:12:09 +01:00
parent fe8a038074
commit dccb3bac99
No known key found for this signature in database
GPG Key ID: AB215A1523974D26

View File

@ -344,10 +344,7 @@ def dns_get_dump():
@authorized_personnel_only
def dns_get_zonefile(zone):
from dns_update import get_dns_zonefile
zonefile = get_dns_zonefile(zone, env)
response = make_response(zonefile, 200)
response.mimetype = "text/plain"
return response
return Response(get_dns_zonefile(zone, env), status=200, mimetype='text/plain')
# SSL