mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* lib/open-uri.rb (open_loop): find_proxy should return nil when proxy does not exist. [ruby-dev:27630]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9500 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
2b684f7938
commit
d923e58850
2 changed files with 6 additions and 1 deletions
|
@ -1,3 +1,8 @@
|
|||
Thu Nov 3 07:57:39 2005 Minero Aoki <aamine@loveruby.net>
|
||||
|
||||
* lib/open-uri.rb (open_loop): find_proxy should return nil when
|
||||
proxy does not exist. [ruby-dev:27630]
|
||||
|
||||
Wed Nov 2 20:25:28 2005 Hidetoshi NAGAI <nagai@ai.kyutech.ac.jp>
|
||||
|
||||
* ext/tk/extconf.rb: ext/tk/extconf.rb: change the check parameter
|
||||
|
|
|
@ -173,7 +173,7 @@ module OpenURI
|
|||
end
|
||||
case opt_proxy
|
||||
when true
|
||||
find_proxy = lambda {|u| [u.find_proxy, nil, nil]}
|
||||
find_proxy = lambda {|u| pxy = u.find_proxy; pxy ? [pxy, nil, nil] : nil}
|
||||
when nil, false
|
||||
find_proxy = lambda {|u| nil}
|
||||
when String
|
||||
|
|
Loading…
Reference in a new issue