Skip to content

Commit 1604e20

Browse files
committed
Fix the proxy_bypass_registry function all returning true in some cases.
1 parent eeafb6a commit 1604e20

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

src/requests/utils.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,8 @@ def proxy_bypass_registry(host):
9797
# '<local>' string by the localhost entry and the corresponding
9898
# canonical entry.
9999
proxyOverride = proxyOverride.split(";")
100+
# filter out empty strings to avoid re.match all true.
101+
proxyOverride = filter(None, proxyOverride)
100102
# now check if we match one of the registry values.
101103
for test in proxyOverride:
102104
if test == "<local>":

0 commit comments

Comments
 (0)