mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-04-27 04:41:26 -07:00
jira: Fixes json reading string object instead of byte (#52660)
This commit is contained in:
parent
bd0cad6ed7
commit
1651d4f21a
1 changed files with 1 additions and 1 deletions
|
@ -263,7 +263,7 @@ def request(url, user, passwd, timeout, data=None, method=None):
|
||||||
body = response.read()
|
body = response.read()
|
||||||
|
|
||||||
if body:
|
if body:
|
||||||
return json.loads(body)
|
return json.loads(to_text(body, errors='surrogate_or_strict'))
|
||||||
else:
|
else:
|
||||||
return {}
|
return {}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue