Project

General

Profile

Backport #10531 ยป 0001-merge-revision-s-47079-Backport-9129.patch

jrafanie (Joe Rafaniello), 11/20/2014 04:38 PM

View differences:

ChangeLog
Thu Nov 20 16:36:00 2014 NARUSE, Yui <naruse@ruby-lang.org>
* lib/net/http.rb (Net::HTTP.proxy_uri): use initializer instead
of parser to handle IPv6 address. [Bug #9129]
Thu Nov 13 22:32:34 2014 CHIKANAGA Tomoyuki <nagachika@ruby-lang.org>
* lib/rexml/document.rb: add REXML::Document#document.
lib/net/http.rb
# The proxy URI determined from the environment for this connection.
def proxy_uri # :nodoc:
@proxy_uri ||= URI("http://#{address}:#{port}").find_proxy
@proxy_uri ||= URI::HTTP.new(
"http".freeze, nil, address, port, nil, nil, nil, nil, nil
).find_proxy
end
# The address of the proxy server, if one is configured.
    (1-1/1)