Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 6 additions & 3 deletions plotly/plotly/chunked_requests/chunked_request.py
Original file line number Diff line number Diff line change
Expand Up @@ -94,10 +94,13 @@ def _get_proxy_config(self):
ssl_enabled = self._ssl_enabled

if ssl_enabled:
proxy = os.environ.get("https_proxy")
proxy = (os.environ.get("https_proxy") or
os.environ.get("HTTPS_PROXY"))
else:
proxy = os.environ.get("http_proxy")
no_proxy = os.environ.get("no_proxy")
proxy = (os.environ.get("http_proxy") or
os.environ.get("HTTP_PROXY"))

no_proxy = os.environ.get("no_proxy") or os.environ.get("NO_PROXY")
no_proxy_url = no_proxy and self._server in no_proxy

if proxy and not no_proxy_url:
Expand Down