diff --git a/src/risotto/http.py b/src/risotto/http.py index 2880ff8..bd1ca48 100644 --- a/src/risotto/http.py +++ b/src/risotto/http.py @@ -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: