From a44f5878f212dba8a37c27a90be9aba9d0aec62a Mon Sep 17 00:00:00 2001 From: akr Date: Tue, 11 Oct 2016 16:42:05 +0000 Subject: forgot to replace two occurences of ENV. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56397 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- lib/uri/generic.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/uri/generic.rb') diff --git a/lib/uri/generic.rb b/lib/uri/generic.rb index 0ac91d5f39..2b95b47fa7 100644 --- a/lib/uri/generic.rb +++ b/lib/uri/generic.rb @@ -1547,7 +1547,7 @@ module URI end name = 'no_proxy' - if no_proxy = ENV[name] || ENV[name.upcase] + if no_proxy = env[name] || env[name.upcase] no_proxy.scan(/(?!\.)([^:,\s]+)(?::(\d+))?/) {|host, port| if (!port || self.port == port.to_i) if /(\A|\.)#{Regexp.quote host}\z/i =~ self.host -- cgit v1.2.3