зеркало из https://github.com/github/ruby.git
* lib/net/http.rb (Net::HTTP.proxy_uri): use initializer instead
of parser to handle IPv6 address. [Bug #9129] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47079 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
Родитель
90a16cb228
Коммит
f01485b4ec
|
@ -1,3 +1,8 @@
|
|||
Wed Aug 6 04:33:58 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]
|
||||
|
||||
Wed Aug 6 04:16:05 2014 NARUSE, Yui <naruse@ruby-lang.org>
|
||||
|
||||
* lib/net/http/requests.rb (Net::HTTP::Options::RESPONSE_HAS_BODY):
|
||||
|
|
|
@ -1026,7 +1026,9 @@ module Net #:nodoc:
|
|||
|
||||
# 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.
|
||||
|
|
Загрузка…
Ссылка в новой задаче