fixed wrong variable naming
This commit is contained in:
parent
b28877a4a6
commit
4e33f86d1f
|
@ -52,7 +52,7 @@ class BaseClient(object):
|
|||
print(theUrl, queryParams, theHeader, jsonBody)
|
||||
resp = requests.post(theUrl, params=queryParams, data=jsonBody, headers=theHeader, timeout=timeout)
|
||||
else:
|
||||
resp = requests.post(theUrl, params=queryParams, headers=theHeaders, timeout=timeout)
|
||||
resp = requests.post(theUrl, params=queryParams, headers=theHeader, timeout=timeout)
|
||||
|
||||
self.__checkForSuccess(resp)
|
||||
return self.__return(resp, theHeader)
|
||||
|
@ -65,9 +65,9 @@ class BaseClient(object):
|
|||
|
||||
if body is not None:
|
||||
jsonBody = json.dumps(body, ensure_ascii=True)
|
||||
resp = requests.put(theUrl, params=queryParams, data=jsonBody, headers=theHeaders, timeout=timeout)
|
||||
resp = requests.put(theUrl, params=queryParams, data=jsonBody, headers=theHeader, timeout=timeout)
|
||||
else:
|
||||
resp = requests.put(theUrl, params=queryParams, headers=theHeaders, timeout=timeout)
|
||||
resp = requests.put(theUrl, params=queryParams, headers=theHeader, timeout=timeout)
|
||||
|
||||
self.__print(resp)
|
||||
self.__checkForSuccess(resp)
|
||||
|
|
Loading…
Reference in New Issue