mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
parent
8c05023be3
commit
104b2d684c
1 changed files with 2 additions and 1 deletions
|
@ -426,7 +426,8 @@ def main():
|
|||
uresp[ukey] = value
|
||||
|
||||
if 'content_type' in uresp:
|
||||
if uresp['content_type'].startswith('application/json'):
|
||||
if uresp['content_type'].startswith('application/json') or \
|
||||
uresp['content_type'].startswith('text/json'):
|
||||
try:
|
||||
js = json.loads(content)
|
||||
uresp['json'] = js
|
||||
|
|
Loading…
Reference in a new issue