Issue #3788 has been updated by Marcus Rückert.
no it doesnt.
if i use ipv6-localhost instead of [::1] it works.
$ cat tt.rb
#!/usr/bin/ruby
# vim: set sw=2 sts=2 et tw=80 :
require 'uri'
require 'net/http'
%w{[::1] ipv6-localhost}.each do |hostname|
begin
test_url = 'http://' + hostname + ':80/test/Test'
puts test_url
url = URI.parse( test_url )
puts url.host
puts Net::HTTP.get( url )
rescue Exception => ex
p ex
end
end
$ ruby -v tt.rb
ruby 1.8.7 (2010-06-23 patchlevel 299) [x86_64-linux]
http://[::1]:80/test/Test
[::1]
#<SocketError: getaddrinfo: Name or service not known>
http://ipv6-localhost:80/test/Test
ipv6-localhost
<?xml version="1.0" encoding="iso-8859-1"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<title>404 - Not Found</title>
</head>
<body>
<h1>404 - Not Found</h1>
</body>
</html>
same result with ruby 1.9.2p0 (2010-08-18 revision 29036) [x86_64-linux]
----------------------------------------
http://redmine.ruby-lang.org/issues/show/3788
----------------------------------------
http://redmine.ruby-lang.org