From: Oliver Andrich Date: 2006-04-10T07:22:21+09:00 Subject: Re: URI.join broken? Paul Battley wrote: > On 09/04/06, Oliver Andrich wrote: >> I except URI.join("http://test.de/test1", "test2") in an URI which looks >> like http://test.de/test1/test2 and not like http://test.de/test2. And >> from reading the documentation I even expect that >> URI.join("http://test.de/", "test1", "test2") results in >> http://test.de/test1/test2 and not http://test.de/test2 > > That's a strange result. It works as expected for me, also using 1.8.4 > via Darwin Ports on OS X: > > URI.join("http://test.de/test1", "test2").to_s #=> > "http://test.de/test2" Can you explain to me why this is correct? I would expect http://test.de/test1/test2 as the result of your call. Oliver -- Posted via http://www.ruby-forum.com/.