From 31a597f3e230187ec73972fadf6da407f0ddc8f4 Mon Sep 17 00:00:00 2001 From: admin Date: Thu, 12 Dec 2024 11:11:10 +0200 Subject: [PATCH] fix locust --- app/locustio/jira/http_actions.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/locustio/jira/http_actions.py b/app/locustio/jira/http_actions.py index 3e6b02661..61a7808ee 100644 --- a/app/locustio/jira/http_actions.py +++ b/app/locustio/jira/http_actions.py @@ -29,7 +29,8 @@ def login_and_view_dashboard(locust): # Check if 2sv login form r = locust.get('/login.jsp', catch_response=True) - if 'login-form-remember-me' in r.content: + content = r.content.decode('utf-8') + if 'login-form-remember-me' in content: legacy_form = True