The "postgres:" URI scheme isn't even mentioned in the registry at 
https://www.iana.org/assignments/uri-schemes/uri-schemes.xhtml, so I'm 
not really sure we should deal with it in a special way.

Regards,   Martin.

-------- Forwarded Message --------
Subject: [ruby-cvs:68151] naruse:r60970 (trunk): Append "//" if empty 
host for file or postgres URI
Date: Sat, 2 Dec 2017 00:09:41 +0900
From: naruse / ruby-lang.org
To: ruby-cvs / ruby-lang.org

naruse	2017-12-02 00:09:41 +0900 (Sat, 02 Dec 2017)

   New Revision: 60970

   https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=60970

   Log:
     Append "//" if empty host for file or postgres URI
         https://url.spec.whatwg.org/#url-serializing
     > Otherwise, if url?\226?\128?\153s host is null and 
url?\226?\128?\153s scheme is "file", append "//" to output.
         URL spec doesn't says anything about postgres, but assume the 
same thing.

   Modified files:
     trunk/lib/uri/generic.rb
     trunk/test/uri/test_generic.rb
.


Unsubscribe: <mailto:ruby-core-request / ruby-lang.org?subject=unsubscribe>
<http://lists.ruby-lang.org/cgi-bin/mailman/options/ruby-core>