Message264311
No, urllib.request does not handle the no_proxy environment in case-sensitive way. It first checks if any environment_variable.lower() ends with "_proxy", and then checks if there is any environment_variable ends with "_proxy". So it works as a case insensitive check, but the lowercase one will override others, e.g, no_proxy overrides no_PROXY. But the document is misleading, it should be clarified. |
|
Date |
User |
Action |
Args |
2016-04-26 15:41:10 | xiang.zhang | set | recipients:
+ xiang.zhang, docs@python, martin.panter, Daniel Morrison |
2016-04-26 15:41:10 | xiang.zhang | set | messageid: <1461685270.52.0.37127486693.issue26864@psf.upfronthosting.co.za> |
2016-04-26 15:41:10 | xiang.zhang | link | issue26864 messages |
2016-04-26 15:41:10 | xiang.zhang | create | |
|