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('