Merge pull request #8187 from willangenent/devel
Fix for issue #8152: Missing auth headers and a faulty JSON decode
This commit is contained in:
commit
9fac3b0dc5
1 changed files with 2 additions and 2 deletions
|
@ -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(
|
||||
|
|
Loading…
Reference in a new issue