mirror of
https://github.com/mail-in-a-box/mailinabox.git
synced 2025-04-20 02:52:11 +00:00
Clean up return
This commit is contained in:
parent
fe8a038074
commit
dccb3bac99
@ -344,10 +344,7 @@ def dns_get_dump():
|
|||||||
@authorized_personnel_only
|
@authorized_personnel_only
|
||||||
def dns_get_zonefile(zone):
|
def dns_get_zonefile(zone):
|
||||||
from dns_update import get_dns_zonefile
|
from dns_update import get_dns_zonefile
|
||||||
zonefile = get_dns_zonefile(zone, env)
|
return Response(get_dns_zonefile(zone, env), status=200, mimetype='text/plain')
|
||||||
response = make_response(zonefile, 200)
|
|
||||||
response.mimetype = "text/plain"
|
|
||||||
return response
|
|
||||||
|
|
||||||
# SSL
|
# SSL
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user