From: Nobuyoshi Nakada Date: 2008-03-05T09:30:16+09:00 Subject: Re: Does this URI.parse http:/ bug has been fixed in Ruby 1.9? Hi, At Tue, 4 Mar 2008 22:44:59 +0900, Simone Carletti wrote in [ruby-talk:293487]: > I just discovered a bug in URI.parse. It's not a bug. > This to run the following code: > > > URI.parse("http:/foo.bar.com") > > It returns an URI object but I would expect an error. It is a valid URI which doesn't have host part. irb(main):001:0> require 'uri' => true irb(main):002:0> uri = URI.parse("http:/foo.bar.com") => # irb(main):003:0> uri.path => "/foo.bar.com" irb(main):004:0> uri.host => nil -- Nobu Nakada