From 5d47bebb6bb8b75ba311e3bd407d9e6999131218 Mon Sep 17 00:00:00 2001 From: ibuler Date: Wed, 19 Dec 2018 13:55:49 +0800 Subject: [PATCH] =?UTF-8?q?[Bugfix]=20=E4=BF=AE=E5=A4=8D=E5=BD=95=E5=83=8F?= =?UTF-8?q?bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- apps/terminal/api/v1/session.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/terminal/api/v1/session.py b/apps/terminal/api/v1/session.py index 5788df775..f463b41f8 100644 --- a/apps/terminal/api/v1/session.py +++ b/apps/terminal/api/v1/session.py @@ -119,7 +119,7 @@ class SessionReplayViewSet(viewsets.ViewSet): session = get_object_or_404(Session, id=session_id) data = { - 'type': 'guacamole' if self.session.protocol == 'rdp' else 'json', + 'type': 'guacamole' if session.protocol == 'rdp' else 'json', 'src': '', }