forked from Infra/risotto
name => username
This commit is contained in:
parent
37499daccf
commit
1c7a8b7417
|
@ -8,7 +8,7 @@ from .error import CallError, NotAllowedError
|
|||
async def handle(request):
|
||||
version, uri = request.match_info.get_info()['path'].split('/', 2)[-2:]
|
||||
context = Context()
|
||||
context.username = request.match_info.get('name', "Anonymous")
|
||||
context.username = request.match_info.get('username', "Anonymous")
|
||||
try:
|
||||
text = await dispatcher.call(version, uri, context, id=2, public_only=True)
|
||||
except NotAllowedError as err:
|
||||
|
|
Loading…
Reference in New Issue