refac/fix: trusted env for proxy

This commit is contained in:
Timothy Jaeryang Baek
2025-11-04 12:21:18 -05:00
parent ec21577f1a
commit bafeb76c41
3 changed files with 4 additions and 4 deletions

View File

@@ -51,7 +51,7 @@ async def post_webhook(name: str, url: str, message: str, event_data: dict) -> b
payload = {**event_data}
log.debug(f"payload: {payload}")
async with aiohttp.ClientSession() as session:
async with aiohttp.ClientSession(trust_env=True) as session:
async with session.post(url, json=payload) as r:
r_text = await r.text()
r.raise_for_status()