fixed wrong variable naming

This commit is contained in:
dcore94 2024-03-08 16:44:42 +01:00
parent b28877a4a6
commit 4e33f86d1f
1 changed files with 3 additions and 3 deletions

View File

@ -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)