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