Project

General

Profile

Actions

Bug #3847

closed

URI.join does not join multiple paths

Bug #3847: URI.join does not join multiple paths

Added by kaiwren (Chonira Sidu Ponnappa) over 15 years ago. Updated almost 15 years ago.

Status:
Closed
Assignee:
-
Target version:
-
ruby -v:
1.8.7, 1.9.2
Backport:
[ruby-core:32462]

Description

=begin
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.
=end

Actions

Also available in: PDF Atom