Bug #3847: URI.join does not join multiple paths
http://redmine.ruby-lang.org/issues/show/3847

Author: Chonira Sidu Ponnappa
Status: Open, Priority: Normal
ruby -v: 1.8.7, 1.9.2

URI.join('http://foo.com', '/bar', '/baz') produces http://foo.com/baz while the documentation implies that it should produce http://foo.com/bar/baz

Tested this on 1.8.7 and 1.9.2 and they both produce the same results.

Either the documentation should be updated to explicitly state that URI.join with drop any existing path on the url, or the implementation needs to be changed to allow appending multiple paths to the url.


----------------------------------------
http://redmine.ruby-lang.org