Fixed Guacamole dict

This commit is contained in:
Adolfo Gómez García 2021-08-02 13:14:57 +02:00
parent 574b19a905
commit 46aa9139a0

View File

@ -50,8 +50,8 @@ CONTENT_TYPE = 'text/plain'
# We will use the cache to "hold" the tickets valid for users # We will use the cache to "hold" the tickets valid for users
def dict2resp(dct): def dict2resp(dct: typing.Mapping[typing.Any, typing.Any]) -> str:
return '\r'.join((k + '\t' + v for k, v in dct.items())) return '\r'.join((str(k) + '\t' + str(v) for k, v in dct.items()))
def guacamole(request: ExtendedHttpRequestWithUser, token: str, tunnelId: str) -> HttpResponse: def guacamole(request: ExtendedHttpRequestWithUser, token: str, tunnelId: str) -> HttpResponse: