We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4a8a09f commit 5138734Copy full SHA for 5138734
plotly/plotly/chunked_requests/chunked_request.py
@@ -94,10 +94,13 @@ def _get_proxy_config(self):
94
ssl_enabled = self._ssl_enabled
95
96
if ssl_enabled:
97
- proxy = os.environ.get("https_proxy")
+ proxy = (os.environ.get("https_proxy") or
98
+ os.environ.get("HTTPS_PROXY"))
99
else:
- proxy = os.environ.get("http_proxy")
100
- no_proxy = os.environ.get("no_proxy")
+ proxy = (os.environ.get("http_proxy") or
101
+ os.environ.get("HTTP_PROXY"))
102
+
103
+ no_proxy = os.environ.get("no_proxy") or os.environ.get("NO_PROXY")
104
no_proxy_url = no_proxy and self._server in no_proxy
105
106
if proxy and not no_proxy_url:
0 commit comments