From aaf5c5f9d9620c42d60e650361b2f1bce8964988 Mon Sep 17 00:00:00 2001 From: Amadou Diallo Date: Sat, 4 Nov 2023 22:52:50 +0000 Subject: [PATCH] Updating user_get_websudo to set the not_json_response as true --- atlassian/jira.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/atlassian/jira.py b/atlassian/jira.py index ce699d1b3..0e4f589af 100644 --- a/atlassian/jira.py +++ b/atlassian/jira.py @@ -1966,11 +1966,12 @@ def user_get_websudo(self): "webSudoPassword": self.password, "webSudoIsPost": "false", } - answer = self.get("secure/admin/WebSudoAuthenticate.jspa", self.form_token_headers) + answer = self.get("secure/admin/WebSudoAuthenticate.jspa", self.form_token_headers, not_json_response=True) + decoded_answer = answer.decode() atl_token = None - if answer: + if decoded_answer: atl_token = ( - answer.split('