summaryrefslogtreecommitdiffstats
path: root/lib
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
commit45f7376800c52c8d360aee3eace488c01186f09c (patch)
treea91e2d36aa87debe7031b0ac5562390c37fdede9 /lib
parent1cb4eae934bd5f2ff7eb9006702b76d6fb60c82d (diff)
downloadruby-45f7376800c52c8d360aee3eace488c01186f09c.tar.gz
ruby-45f7376800c52c8d360aee3eace488c01186f09c.tar.xz
ruby-45f7376800c52c8d360aee3eace488c01186f09c.zip
fix previous change.
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@5027 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 917f385ce..116644ce0 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]