From 1c7a8b7417a4d5132416688c3eb691618d7645db Mon Sep 17 00:00:00 2001 From: Emmanuel Garette Date: Thu, 28 Nov 2019 14:58:38 +0100 Subject: [PATCH] name => username --- src/risotto/http.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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: