From f9df6d2a16c89d5116cdc7516373a889901253ba Mon Sep 17 00:00:00 2001 From: Batuhan Taskaya Date: Sat, 25 Sep 2021 11:32:44 +0200 Subject: [PATCH] http: allow reading proxies from the current environment; (#6688) --- dvc/fs/http.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/dvc/fs/http.py b/dvc/fs/http.py index 0f533bcf0..ccfe4b326 100644 --- a/dvc/fs/http.py +++ b/dvc/fs/http.py @@ -87,6 +87,9 @@ class HTTPFileSystem(NoDirectoriesMixin, FSSpecWrapper): ssl=make_context(config["ssl_verify"]) ) + # Allow reading proxy configurations from the environment. + client_kwargs["trust_env"] = True + credentials["get_client"] = self.get_client self.upload_method = config.get("method", "POST") return credentials