Skip to content

Commit e3485be

Browse files
daniele-athomeWhyNotHugo
authored andcommitted
Enable environment variables for HTTP proxy
1 parent 0f83fd9 commit e3485be

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

vdirsyncer/storage/dav.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -422,6 +422,7 @@ def _session(self):
422422
return aiohttp.ClientSession(
423423
connector=self.connector,
424424
connector_owner=False,
425+
trust_env=True,
425426
# TODO use `raise_for_status=true`, though this needs traces first,
426427
)
427428

vdirsyncer/storage/http.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,7 @@ async def list(self):
6868
async with aiohttp.ClientSession(
6969
connector=self.connector,
7070
connector_owner=False,
71+
trust_env=True,
7172
# TODO use `raise_for_status=true`, though this needs traces first,
7273
) as session:
7374
r = await request(

0 commit comments

Comments
 (0)