1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00

Fix for issue #8152: Missing auth headers and a faulty JSON decode

Looks like this regressed in commit 9730157 due to fetch_url refactors.
This commit is contained in:
Will Angenent 2014-07-17 23:04:21 +01:00
parent d4548fdd01
commit 0e33db837a

View file

@ -122,9 +122,9 @@ class netscaler(object):
'Content-Type' : 'application/x-www-form-urlencoded',
}
response, info = fetch_url(self.module, request_url, data=data_json)
response, info = fetch_url(self.module, request_url, data=data_json, headers=headers)
return json.load(response.read())
return json.load(response)
def prepare_request(self, action):
resp = self.http_request(