Actions
Bug #9912
closedURI#to_s with an empty host formats the string incorrectly
Description
maciek@gamera:~$ ruby -e "puts URI.parse('postgres:///foo').to_s"
postgres:/foo
The string of the formatted URI should be 'postgres:///foo'.
Postgres uses empty-host URIs to indicate a Unix socket connection should be used instead of a TCP connection (which is used if you specify 'localhost' as host), so this can be very useful.
Actions
Like0
Like0Like0Like0