http: allow reading proxies from the current environment; (#6688)

This commit is contained in:
Batuhan Taskaya
2021-09-25 11:32:44 +02:00
committed by GitHub
parent 2e4fb376da
commit f9df6d2a16
+3
View File
@@ -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