Skip to content

Commit

Permalink
remove verify=False from httpx requests
Browse files Browse the repository at this point in the history
  • Loading branch information
eriktaubeneck committed Mar 15, 2024
1 parent 3103593 commit 37984f0
Showing 1 changed file with 3 additions and 11 deletions.
14 changes: 3 additions & 11 deletions sidecar/app/query/ipa.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,10 +32,7 @@ def send_kill_signals(self):
),
)

r = httpx.post(
finish_url,
verify=False,
)
r = httpx.post(finish_url)
self.logger.info(f"sent post request: {r.text}")

def crash(self):
Expand Down Expand Up @@ -239,9 +236,7 @@ def run(self):
),
)
while True:
print(url)
r = httpx.get(url, verify=False).json()
print(r)
r = httpx.get(url).json()
status = r.get("status")
match status:
case Status.IN_PROGRESS.name:
Expand Down Expand Up @@ -335,10 +330,7 @@ def send_terminate_signals(self):
),
)

r = httpx.post(
finish_url,
verify=False,
)
r = httpx.post(finish_url)
self.logger.info(f"sent post request: {finish_url}: {r.text}")

def finish(self):
Expand Down

0 comments on commit 37984f0

Please sign in to comment.