On Thursday, 30 April 2020 23:04:01 UTC+1, Ian Lance Taylor wrote: > > On Thu, Apr 30, 2020 at 11:09 AM Brian Candler <b.ca...@pobox.com > <javascript:>> wrote: > > > > In a URL, the percent sign should appear as %25 (% marks the start of a > hex-encoded character) > > https://play.golang.org/p/gMC1tdpJER4 > > > > The URL as shown is invalid. > > I *think* you are saying that the u.Path field should use %25 rather > than plain %.
No: I'm just saying the library is working correctly, by rejecting the invalid input that the OP gave. If the input URL is correct to file%25ver3, then the parsed u.Path contains file%ver3 as expected. -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/golang-nuts/453fe1df-34b0-4156-8d9c-5eaa62f485aa%40googlegroups.com.