Commit 0e33db83 by Will Angenent

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

Looks like this regressed in commit 97301575 due to fetch_url refactors.
parent d4548fdd
...@@ -122,9 +122,9 @@ class netscaler(object): ...@@ -122,9 +122,9 @@ class netscaler(object):
'Content-Type' : 'application/x-www-form-urlencoded', '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): def prepare_request(self, action):
resp = self.http_request( resp = self.http_request(
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment