Update main.py to enable http_proxy use for checking for new versions

This commit is contained in:
mindspawn 2024-06-05 17:24:59 -07:00 committed by GitHub
parent a8d80f936a
commit 3069fa8074
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -902,7 +902,7 @@ async def get_app_changelog():
@app.get("/api/version/updates")
async def get_app_latest_release_version():
try:
async with aiohttp.ClientSession() as session:
async with aiohttp.ClientSession(trust_env=True) as session:
async with session.get(
"https://api.github.com/repos/open-webui/open-webui/releases/latest"
) as response: