Project

General

Profile

Actions

Bug #3594

closed

URI class doesn't do file URL's properly.

Added by NeilW (Neil Wilson) over 13 years ago. Updated over 6 years ago.

Status:
Closed
Target version:
-
ruby -v:
ruby 1.8.7 (2010-01-10 patchlevel 249) [x86_64-linux]
[ruby-core:31397]

Description

=begin
URI doesn't seem to output file URLs properly where there is an absolute path part.

For example.

require 'uri'

my_url = URI.parse("file:///var/lib/libvirt/images/")
p my_url.to_s

"file:/var/lib/libvirt/images/"

The double slash '//' should always appear according to the file URL specification.
=end

Actions

Also available in: Atom PDF

Like0
Like0Like0Like0Like0Like0Like0Like0