[ruby-cvs:78564] 54072e329c (master): Add ipaddr optional parameter to Net::HTTP#start
"NARUSE, Yui" <[email protected]>
| Newsgroups | gmane.comp.lang.ruby.cvs |
|---|---|
| Message-ID | <[email protected]> |
NARUSE, Yui 2019-12-09 20:19:11 +0900 (Mon, 09 Dec 2019)
New Revision: 54072e329c
https://github.com/ruby/ruby/commit/54072e329c
Log:
Add ipaddr optional parameter to Net::HTTP#start
to replace the address for TCP/IP connection [Feature #5180]
There're 3 layers of hostname:
* host address for TCP/IP
* TLS server name
* HTTP Host header value
To test DNS round robin or check server certificate from server local,
people sometimes want to connect server with given IP address but keep
TLS server name and HTTP Host header value.
closes [Feature #15215]
closes https://github.com/ruby/ruby/pull/1893
closes https://github.com/ruby/ruby/pull/1977
Modified files:
NEWS
lib/net/http.rb
test/net/http/test_https.rb