mirror of
https://github.com/alexgo-io/stacks-puppet-node.git
synced 2026-04-17 12:14:33 +08:00
pattern=
This commit is contained in:
@@ -728,7 +728,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()
|
||||
|
||||
Reference in New Issue
Block a user