We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 364b16f commit 726e969Copy full SHA for 726e969
atlassian/jira.py
@@ -1966,11 +1966,12 @@ def user_get_websudo(self):
1966
"webSudoPassword": self.password,
1967
"webSudoIsPost": "false",
1968
}
1969
- 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)
1970
+ decoded_answer = answer.decode()
1971
atl_token = None
- if answer:
1972
+ if decoded_answer:
1973
atl_token = (
- answer.split('<meta id="atlassian-token" name="atlassian-token" content="')[1]
1974
+ decoded_answer.split('<meta id="atlassian-token" name="atlassian-token" content="')[1]
1975
.split("\n")[0]
1976
.split('"')[0]
1977
)
0 commit comments