Skip to content
Myr

Fix the proxy_bypass_registry function all returning true in some cases.

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

authored by flysee · committed by flysee · parent eeafb6a · 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:src/requests/utils.py+2 added
95 unmodified lines
96 # make a check value list from the registry entry: replace the97 # '<local>' string by the localhost entry and the corresponding98 # canonical entry.99 proxyOverride = proxyOverride.split(";")100 # filter out empty strings to avoid re.match all true.101 proxyOverride = filter(None, proxyOverride)102 # now check if we match one of the registry values.103 for test in proxyOverride:104 if test == "<local>":105 if "." not in host:
991 unmodified lines