From e3485beb4515dad729aad9486163b44be6ed40b7 Mon Sep 17 00:00:00 2001 From: Daniele Ricci Date: Fri, 13 Jan 2023 15:13:44 +0100 Subject: [PATCH] Enable environment variables for HTTP proxy --- vdirsyncer/storage/dav.py | 1 + vdirsyncer/storage/http.py | 1 + 2 files changed, 2 insertions(+) diff --git a/vdirsyncer/storage/dav.py b/vdirsyncer/storage/dav.py index 727f685..dc9085f 100644 --- a/vdirsyncer/storage/dav.py +++ b/vdirsyncer/storage/dav.py @@ -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, ) diff --git a/vdirsyncer/storage/http.py b/vdirsyncer/storage/http.py index 5b12098..177e769 100644 --- a/vdirsyncer/storage/http.py +++ b/vdirsyncer/storage/http.py @@ -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(