Преглед изворни кода

Merge pull request #2870 from mindspawn/proxy-fix2

Fix proxy not being used for /api/version/updates
Timothy Jaeryang Baek пре 1 година
родитељ
комит
b512501d9d
1 измењених фајлова са 1 додато и 1 уклоњено
  1. 1 1
      backend/main.py

+ 1 - 1
backend/main.py

@@ -962,7 +962,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: