Message141157
| Author |
pbumbulis |
| Recipients |
Or.Wilder, pbumbulis, thomas.holmes |
| Date |
2011年07月26日.13:24:31 |
| SpamBayes Score |
7.384032e-11 |
| Marked as misclassified |
No |
| Message-id |
<1311686672.41.0.742782654979.issue12480@psf.upfronthosting.co.za> |
| In-reply-to |
| Content |
proxy_bypass_registry in urllib.py does not handle the ProxyOverride registry value properly: it treats an empty override as *, i.e. bypass the proxy for all hosts. This behavior does not match other programs (e.g. Chrome) and can be easily obtained by specify * for the override. One fix would be to ignore empty tests, for example:
....
for test in proxyOverride:
if test:
if test == '<local>':
...
return 0
....
Perhaps whitespace should be stripped as well.
The problem arises because fiddler2 leaves a trailing ; on the ProxyOverride string.
One possible workaround is to set
urllib.proxy_bypass = lambda h: 0
to disable bypass checking. Another alternative would be to specify the proxy settings in the http_proxy environment variable (proxy_bypass_registry is not called in this case). |
|
History
|
|---|
| Date |
User |
Action |
Args |
| 2011年07月26日 13:24:32 | pbumbulis | set | recipients:
+ pbumbulis, thomas.holmes, Or.Wilder |
| 2011年07月26日 13:24:32 | pbumbulis | set | messageid: <1311686672.41.0.742782654979.issue12480@psf.upfronthosting.co.za> |
| 2011年07月26日 13:24:31 | pbumbulis | link | issue12480 messages |
| 2011年07月26日 13:24:31 | pbumbulis | create |
|