1
0
mirror of https://github.com/dkmstr/openuds.git synced 2024-12-24 21:34:41 +03:00

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
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: