summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2007-07-13 07:59:40 +0000
committerakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2007-07-13 07:59:40 +0000
commit17bb132c8ae31cbf9518d11e6c7a0e68cc520fac (patch)
treee796014b3ca0b7754f40a54a0aefd611e4f08ee8
parent8d5c938c42554a65886cfb7e8f75e803cbf99d15 (diff)
downloadruby-17bb132c8ae31cbf9518d11e6c7a0e68cc520fac.tar.gz
ruby-17bb132c8ae31cbf9518d11e6c7a0e68cc520fac.tar.xz
ruby-17bb132c8ae31cbf9518d11e6c7a0e68cc520fac.zip
* lib/open-uri.rb (URI::Generic#find_proxy): use ENV.to_hash to access
http_proxy environment variable to avoid case insensitive environment search. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@12760 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r--ChangeLog6
-rw-r--r--lib/open-uri.rb2
2 files changed, 7 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index 84f6f5d70..efc5c70c8 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+Fri Jul 13 16:10:00 2007 Tanaka Akira <akr@fsij.org>
+
+ * lib/open-uri.rb (URI::Generic#find_proxy): use ENV.to_hash to access
+ http_proxy environment variable to avoid case insensitive
+ environment search.
+
Fri Jul 13 15:02:15 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
* win32/win32.c (CreateChild): enclose command line except for
diff --git a/lib/open-uri.rb b/lib/open-uri.rb
index 56c78f046..37d22a157 100644
--- a/lib/open-uri.rb
+++ b/lib/open-uri.rb
@@ -660,7 +660,7 @@ module URI
proxy_uri = nil
end
else # http_proxy is safe to use because ENV is case sensitive.
- proxy_uri = ENV[name]
+ proxy_uri = ENV.to_hash[name]
end
if !proxy_uri
# Use CGI_HTTP_PROXY. cf. libwww-perl.