From bef2f087b6a456c5cc7facdba933e5cf9dba436e Mon Sep 17 00:00:00 2001 From: akr Date: Fri, 13 Jul 2007 07:59:40 +0000 Subject: * 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: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@12760 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- ChangeLog | 6 ++++++ lib/open-uri.rb | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 0bee2fee9c..cc4b896c5a 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +Fri Jul 13 16:10:00 2007 Tanaka Akira + + * 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 * win32/win32.c (CreateChild): enclose command line except for diff --git a/lib/open-uri.rb b/lib/open-uri.rb index d69f7dbe41..e628a109eb 100644 --- a/lib/open-uri.rb +++ b/lib/open-uri.rb @@ -577,7 +577,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. -- cgit v1.2.3