Skip to content
Myr

Add a comment about lowercase env. variables precedence over uppercase

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by Julien Prigent · committed by Nate Prewitt · parent 1e8a314 · Browse files · 1 file+2 added−0 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+2 added−0 removed

  • other:+2 added−0 removed

1 file+2 added−0 removed

modified:requests/utils.py+2 added
694 unmodified lines
695 Returns whether we should bypass proxies or not.696697 :rtype: bool698 """699 # Prioritize lowercase environment variables over uppercase700 # to keep a consistent behaviour with other http projects (curl, wget).701 get_proxy = lambda k: os.environ.get(k) or os.environ.get(k.upper())702703 # First check whether no_proxy is defined. If it is, check that the URL704 # we're getting isn't in the no_proxy list.
273 unmodified lines