[ruby-cvs:68151] naruse:r60970 (trunk): Append "//" if empty host for file or postgres URI

naruse at ruby-lang.org naruse at ruby-lang.org
Sat Dec 2 00:09:41 JST 2017


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


More information about the ruby-cvs mailing list