diff --git a/ChangeLog b/ChangeLog index 84f6f5d70e..efc5c70c83 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 56c78f0468..37d22a1572 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.