feat: trust_env=True for ClientSession

This commit is contained in:
2026-06-23 08:32:40 +03:00
parent b653ed5986
commit 2afb3f26b3
3 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -10,7 +10,7 @@ BASE_URL = "https://vikingfile.com/api/"
@asynccontextmanager
async def _get_session(session: ClientSession | None) -> AsyncGenerator[ClientSession, None]:
close_session = session is None
session = session or ClientSession()
session = session or ClientSession(trust_env=True)
try:
yield session
finally: