mirror of
https://github.com/alexgo-io/stacks-puppet-node.git
synced 2026-04-16 12:06:43 +08:00
forward http status on name lookup
This commit is contained in:
@@ -750,7 +750,7 @@ class BlockstackdRPC(SimpleXMLRPCServer):
|
||||
res = self.get_subdomain_DID_record(did)
|
||||
|
||||
if 'error' in res:
|
||||
return {'error': res['error'], 'http_status': 404}
|
||||
return {'error': res['error'], 'http_status': res.get('http_status', 404)}
|
||||
|
||||
return self.success_response({'record': res['record']})
|
||||
|
||||
@@ -770,7 +770,7 @@ class BlockstackdRPC(SimpleXMLRPCServer):
|
||||
return {'error': 'Invalid name or subdomain', 'http_status': 400}
|
||||
|
||||
if 'error' in res:
|
||||
return {'error': res['error'], 'http_status': 404}
|
||||
return {'error': res['error'], 'http_status': res.get('http_status', 404)}
|
||||
|
||||
return self.success_response({'record': res['record']})
|
||||
|
||||
|
||||
Reference in New Issue
Block a user