Skip to content

Commit

Permalink
rm todos
Browse files Browse the repository at this point in the history
  • Loading branch information
Koos85 committed Aug 27, 2024
1 parent b9a8927 commit 12911ee
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions lib/check/phpfpm.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,14 @@ async def check_phpfpm(
'Check did not run; '
'statusUrl is not provided, invalid or empty')
raise IgnoreCheckException
# TODO allow_redirects, verify_ssl config

# TODO make request.params nicer
try:
async with aiohttp.ClientSession() as session:
async with session.get(url, params={'json': 'True'}) as resp:
async with session.get(
url,
params={'json': '1'},
ssl=False
) as resp:
resp.raise_for_status()
data = await resp.json()
except Exception as e:
Expand Down

0 comments on commit 12911ee

Please sign in to comment.