[New-bugs-announce] [issue30462] urllib does not support NO_PROXY environment variable containing domain with asterisk

Jiri Hnidek report at bugs.python.org
Wed May 24 16:13:11 EDT 2017


New submission from Jiri Hnidek:

Module urllib contains method proxy_bypass_environment(domain_name). This method check if domain_name should be excluded from proxying. The domain_name is checked against environment variable no_proxy or NO_PROXY. This variable contains comma separated list of domain names/domains. Domains can be specified in following variants:

 - domain.com
 - .domain.com
 - *.domain.com

Method proxy_bypass_environment support first two variants, but it doesn't support variant with asterisk at beginning of domain. The last variant is not anything unusual; e.g.: https://www.gnu.org/software/emacs/manual/html_node/url/Proxies.html

----------
components: Library (Lib)
messages: 294388
nosy: Jiri Hnidek
priority: normal
severity: normal
status: open
title: urllib does not support NO_PROXY environment variable containing domain with asterisk
type: enhancement
versions: Python 3.7

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue30462>
_______________________________________


More information about the New-bugs-announce mailing list