return raw zonefile

This commit is contained in:
Jude Nelson
2017-07-06 19:48:43 -04:00
parent e72d43d0be
commit 51e858428d
2 changed files with 7 additions and 1 deletions

View File

@@ -3734,6 +3734,12 @@ def cli_get_name_zonefile(args, config_path=CONFIG_PATH, raw=True, proxy=None):
except:
result['warning'] = 'Non-standard zonefile'
else:
result = {
'status': True,
'zonefile': result['raw_zonefile']
}
if raw:
return result['zonefile']

View File

@@ -1038,7 +1038,7 @@ class BlockstackAPIEndpointHandler(SimpleHTTPRequestHandler):
Reply 500 on failure to fetch data
"""
internal = self.server.get_internal_proxy()
resp = internal.cli_get_name_zonefile(name, "true", raw=False)
resp = internal.cli_get_name_zonefile(name, "false", raw=False)
if json_is_error(resp):
self._reply_json({"error": resp['error']}, status_code=500)
return