mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
parent
a7d7df1450
commit
3d315244af
1 changed files with 2 additions and 2 deletions
|
@ -1012,8 +1012,8 @@ def fetch_url(module, url, data=None, headers=None, method=None,
|
|||
data={...}
|
||||
resp, info = fetch_url(module,
|
||||
"http://example.com",
|
||||
data=module.jsonify(data)
|
||||
header={'Content-type': 'application/json'},
|
||||
data=module.jsonify(data),
|
||||
headers={'Content-type': 'application/json'},
|
||||
method="POST")
|
||||
status_code = info["status"]
|
||||
body = resp.read()
|
||||
|
|
Loading…
Reference in a new issue