fix previous change.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5027 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
922dc8265f
commit
54e444d834
@ -1,4 +1,4 @@
|
|||||||
Tue Nov 25 18:56:06 2003 Tanaka Akira <akr@m17n.org>
|
Tue Nov 25 19:04:23 2003 Tanaka Akira <akr@m17n.org>
|
||||||
|
|
||||||
* lib/open-uri.rb (URI::Generic#find_proxy): ENV case sensitivity test
|
* lib/open-uri.rb (URI::Generic#find_proxy): ENV case sensitivity test
|
||||||
refined.
|
refined.
|
||||||
|
@ -463,7 +463,7 @@ module URI
|
|||||||
when 0 # no proxy setting anyway.
|
when 0 # no proxy setting anyway.
|
||||||
proxy_uri = nil
|
proxy_uri = nil
|
||||||
when 1
|
when 1
|
||||||
k, v = pairs[0]
|
k, v = pairs.shift
|
||||||
if k == 'http_proxy' && ENV[k.upcase] == nil
|
if k == 'http_proxy' && ENV[k.upcase] == nil
|
||||||
# http_proxy is safe to use becase ENV is case sensitive.
|
# http_proxy is safe to use becase ENV is case sensitive.
|
||||||
proxy_uri = ENV[name]
|
proxy_uri = ENV[name]
|
||||||
|
Loading…
x
Reference in New Issue
Block a user