Actions
Bug #11149
closedURI.parse keeps '?' for query and '#' for fragment even if they are empty
    Bug #11149:
    URI.parse keeps '?' for query and '#' for fragment even if they are empty
  
Description
p = URI.parse('http://example.com/path?query#fragment')
p.query = ''
p.fragment = ''
puts p.to_s
will output "http://example.com/path?#" but I think it should be "http://example.com/path" without '?' and '#'
Actions