This commit is contained in:
Jude Nelson
2018-10-10 13:46:54 -04:00
parent 21a575e958
commit 9e29316970

View File

@@ -612,7 +612,7 @@ class BlockstackAPIEndpointHandler(SimpleHTTPRequestHandler):
Reply the zonefile as application/octet-stream
Reply 404 if not found
"""
if not check_string(zonefile_hash, OP_ZONEFILE_HASH_PATTERN):
if not check_string(zonefile_hash, pattern=OP_ZONEFILE_HASH_PATTERN):
return self._reply_json({'error': 'Invalid zone file hash'}, status_code=400)
blockstackd_url = get_blockstackd_url()