mirror of
https://github.com/samsonjs/vdirsyncer.git
synced 2026-04-03 10:25:51 +00:00
Enable environment variables for HTTP proxy
This commit is contained in:
parent
0f83fd96d5
commit
e3485beb45
2 changed files with 2 additions and 0 deletions
|
|
@ -422,6 +422,7 @@ class DAVSession:
|
|||
return aiohttp.ClientSession(
|
||||
connector=self.connector,
|
||||
connector_owner=False,
|
||||
trust_env=True,
|
||||
# TODO use `raise_for_status=true`, though this needs traces first,
|
||||
)
|
||||
|
||||
|
|
|
|||
|
|
@ -68,6 +68,7 @@ class HttpStorage(Storage):
|
|||
async with aiohttp.ClientSession(
|
||||
connector=self.connector,
|
||||
connector_owner=False,
|
||||
trust_env=True,
|
||||
# TODO use `raise_for_status=true`, though this needs traces first,
|
||||
) as session:
|
||||
r = await request(
|
||||
|
|
|
|||
Loading…
Reference in a new issue