mirror of
https://github.com/arabianq/viking-file-python.git
synced 2026-07-25 21:56:58 +00:00
feat: trust_env=True for ClientSession
This commit is contained in:
+1
-1
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user