summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authornahi <nahi@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2003-10-05 02:00:29 +0000
committernahi <nahi@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2003-10-05 02:00:29 +0000
commitbf620f001127c9a6aee757e5d6319e23c153fdfa (patch)
treeed54a921055a2f1423dd6b5d5827de11b948557d /lib
parenta2108abc5b0f46650cc33e2e9574c3c7e5edb499 (diff)
downloadruby-bf620f001127c9a6aee757e5d6319e23c153fdfa.tar.gz
ruby-bf620f001127c9a6aee757e5d6319e23c153fdfa.tar.xz
ruby-bf620f001127c9a6aee757e5d6319e23c153fdfa.zip
* lib/open-uri.rb (URI::Generic#find_proxy): no_proxy support did not work.
[ruby-dev:21484] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@4688 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib')
-rw-r--r--lib/open-uri.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/open-uri.rb b/lib/open-uri.rb
index dc2f675f2..8ff5a10b8 100644
--- a/lib/open-uri.rb
+++ b/lib/open-uri.rb
@@ -338,7 +338,7 @@ module URI
name = 'no_proxy'
if no_proxy = ENV[name] || ENV[name.upcase]
no_proxy.scan(/([^:,]*)(?::(\d+))?/) {|host, port|
- if /(\A|\.)#{Regexp.quote host}\z/i =~ proxy_uri.host &&
+ if /(\A|\.)#{Regexp.quote host}\z/i =~ self.host &&
(!port || self.port == port.to_i)
proxy_uri = nil
break