summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2003-11-25 10:04:37 +0000
committerakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2003-11-25 10:04:37 +0000
commit54e444d83435a678dbed3a364e8282efa595c51c (patch)
treea91e2d36aa87debe7031b0ac5562390c37fdede9
parent922dc8265f47af47327cf01bb5365f2ea8454d16 (diff)
fix previous change.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5027 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r--ChangeLog2
-rw-r--r--lib/open-uri.rb2
2 files changed, 2 insertions, 2 deletions
diff --git a/ChangeLog b/ChangeLog
index f39b6c95ef..f68b3cbc4e 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -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
refined.
diff --git a/lib/open-uri.rb b/lib/open-uri.rb
index 917f385cec..116644ce07 100644
--- a/lib/open-uri.rb
+++ b/lib/open-uri.rb
@@ -463,7 +463,7 @@ module URI
when 0 # no proxy setting anyway.
proxy_uri = nil
when 1
- k, v = pairs[0]
+ k, v = pairs.shift
if k == 'http_proxy' && ENV[k.upcase] == nil
# http_proxy is safe to use becase ENV is case sensitive.
proxy_uri = ENV[name]