From 46aa9139a0edd9672636ef7c437aaef0e3e3e400 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adolfo=20G=C3=B3mez=20Garc=C3=ADa?= Date: Mon, 2 Aug 2021 13:14:57 +0200 Subject: [PATCH] Fixed Guacamole dict --- server/src/uds/dispatchers/guacamole/views.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/server/src/uds/dispatchers/guacamole/views.py b/server/src/uds/dispatchers/guacamole/views.py index 126553380..8d91ca664 100644 --- a/server/src/uds/dispatchers/guacamole/views.py +++ b/server/src/uds/dispatchers/guacamole/views.py @@ -50,8 +50,8 @@ CONTENT_TYPE = 'text/plain' # We will use the cache to "hold" the tickets valid for users -def dict2resp(dct): - return '\r'.join((k + '\t' + v for k, v in dct.items())) +def dict2resp(dct: typing.Mapping[typing.Any, typing.Any]) -> str: + return '\r'.join((str(k) + '\t' + str(v) for k, v in dct.items())) def guacamole(request: ExtendedHttpRequestWithUser, token: str, tunnelId: str) -> HttpResponse: