Skip to content

Commit

Permalink
Fix #24 - Enforce ssl verification
Browse files Browse the repository at this point in the history
  • Loading branch information
livehybrid authored Apr 18, 2024
1 parent 1a32a62 commit aeec655
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions package/bin/tesla_modinput.py
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ def get_account_credentials(self, accountName):
def get_owner_api(self, accountName, url):
access_token = self.get_access_token(accountName)
request = {
'verify' : False,
'verify' : True,
"headers" : {
'Authorization': 'Bearer ' + access_token,
'Content-Type': 'application/json'
Expand All @@ -117,7 +117,7 @@ def get_owner_api(self, accountName, url):
message_req = {
"headers":headers,
"payload":data,
"verify":False
"verify":True
}
r = self.send_http_request(uri,"POST", headers=headers, payload=data, verify=False)
if r.status_code<300:
Expand Down

0 comments on commit aeec655

Please sign in to comment.