mirror of
https://github.com/samsonjs/vdirsyncer.git
synced 2026-04-27 14:57:41 +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(
|
return aiohttp.ClientSession(
|
||||||
connector=self.connector,
|
connector=self.connector,
|
||||||
connector_owner=False,
|
connector_owner=False,
|
||||||
|
trust_env=True,
|
||||||
# TODO use `raise_for_status=true`, though this needs traces first,
|
# TODO use `raise_for_status=true`, though this needs traces first,
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -68,6 +68,7 @@ class HttpStorage(Storage):
|
||||||
async with aiohttp.ClientSession(
|
async with aiohttp.ClientSession(
|
||||||
connector=self.connector,
|
connector=self.connector,
|
||||||
connector_owner=False,
|
connector_owner=False,
|
||||||
|
trust_env=True,
|
||||||
# TODO use `raise_for_status=true`, though this needs traces first,
|
# TODO use `raise_for_status=true`, though this needs traces first,
|
||||||
) as session:
|
) as session:
|
||||||
r = await request(
|
r = await request(
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue