Descriptionnet/url: generate correct Path when hostname empty
Parse("file:///foo") previously returned a URL with Scheme "file"
and Path "///foo". Now it returns a URL with Path "/foo",
such that
&URL{Scheme: "file", Path: "/foo"}.String() == "file:///foo"
This means that parsing and stringifying the URL "file:/foo"
returns "file:///foo", technically a regression but one that only
affects a corner case.
Fixes issue 4189.
Patch Set 1 #
Total comments: 2
Patch Set 2 : diff -r 7dc8d66efb6d https://code.google.com/p/go #Patch Set 3 : diff -r 7dc8d66efb6d https://code.google.com/p/go #
Total comments: 3
Patch Set 4 : diff -r 4fa0edc28df9 https://code.google.com/p/go #
MessagesTotal messages: 13
|