mirror of
https://github.com/open-webui/open-webui.git
synced 2025-12-12 12:25:20 +00:00
refac
This commit is contained in:
parent
39b06dc3b6
commit
04287eb6d6
1 changed files with 1 additions and 1 deletions
|
|
@ -305,7 +305,7 @@ class OAuthManager:
|
||||||
get_kwargs["headers"] = {
|
get_kwargs["headers"] = {
|
||||||
"Authorization": f"Bearer {access_token}",
|
"Authorization": f"Bearer {access_token}",
|
||||||
}
|
}
|
||||||
async with aiohttp.ClientSession() as session:
|
async with aiohttp.ClientSession(trust_env=True) as session:
|
||||||
async with session.get(picture_url, **get_kwargs) as resp:
|
async with session.get(picture_url, **get_kwargs) as resp:
|
||||||
if resp.ok:
|
if resp.ok:
|
||||||
picture = await resp.read()
|
picture = await resp.read()
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue