mirror of
https://github.com/LBRYFoundation/LBRY-Vault.git
synced 2025-09-04 21:05:11 +00:00
parent
ae57941981
commit
a81b0ecc59
1 changed files with 4 additions and 1 deletions
|
@ -196,7 +196,10 @@ class AuthenticatedServer(Logger):
|
|||
except Exception as e:
|
||||
self.logger.exception("invalid request")
|
||||
return web.Response(text='Invalid Request', status=500)
|
||||
response = {'id': _id}
|
||||
response = {
|
||||
'id': _id,
|
||||
'jsonrpc': '2.0',
|
||||
}
|
||||
try:
|
||||
if isinstance(params, dict):
|
||||
response['result'] = await f(**params)
|
||||
|
|
Loading…
Add table
Reference in a new issue