Feature #12992 ยป uri-missing-hostname.patch
doc/ChangeLog-2.4.0 (working copy) | ||
---|---|---|
Tue Nov 29 15:07:31 2016 Mohamed Osama <mohamed.o.alnagdy@gmail.com>
|
||
* lib/net/http/generic_request.rb: Throw ArgumentError if hostname is
|
||
not provided in URI
|
||
Mon Nov 7 00:32:45 2016 NAKAMURA Usaku <usa@ruby-lang.org>
|
||
* test/ruby/test_optimization.rb (test_tailcall_interrupted_by_sigint):
|
lib/net/http/generic_request.rb (working copy) | ||
---|---|---|
if URI === uri_or_path then
|
||
@uri = uri_or_path.dup
|
||
raise ArgumentError, "no host component for URI" unless @uri.hostname
|
||
host = @uri.hostname.dup
|
||
host << ":".freeze << @uri.port.to_s if @uri.port != @uri.default_port
|
||
@path = uri_or_path.request_uri
|
||
... | ... | |
end
|
||
end
|
||