mirror of
https://github.com/alexgo-io/stacks-puppet-node.git
synced 2026-04-24 03:45:38 +08:00
querying an account's history with no page will cause page to be set to 0
This commit is contained in:
@@ -412,7 +412,7 @@ class BlockstackAPIEndpointHandler(SimpleHTTPRequestHandler):
|
||||
page = qs_values.get('page', None)
|
||||
|
||||
if page is None:
|
||||
return self._reply_json({'error': 'page argument required'}, status_code=400)
|
||||
page = "0" # compatibility
|
||||
|
||||
try:
|
||||
assert len(page) < 10
|
||||
|
||||
Reference in New Issue
Block a user