[go-nuts] Re: url.String() method fails to percent encode Path when certain characters are removed

2016-11-16 Thread Conner Hewitt
Thanks for the replies! What I'm still stumped on is if I remove the fragment character, shouldn't that parse the all of the characters after 'http://host/' as part of the path? It would make sense if the encoding failed when the fragment character was included in the string, rather than

[go-nuts] Re: url.String() method fails to percent encode Path when certain characters are removed

2016-11-16 Thread Robert Johnstone
Hello, The pound character (0x23) is the fragment identifier. I would have thought the fragment needs to be encoded as well, but from memory I'm not sure. Good luck, On Wednesday, 16 November 2016 08:18:54 UTC-5, Conner Hewitt wrote: > > Hi, > > I'm unsure if this is a bug or if this is

[go-nuts] Re: url.String() method fails to percent encode Path when certain characters are removed

2016-11-16 Thread Volker Dobler
# seperates the fragement so you are parsing two URLs with different structure: One with a fragment and one without. Fragement reasembly in String() works different than for path or query. V. Am Mittwoch, 16. November 2016 14:18:54 UTC+1 schrieb Conner Hewitt: > > Hi, > > I'm unsure if this is a