net/url: RawPath unset even though Path differs from input #48854
Labels
FrozenDueToAge
NeedsInvestigation
Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.
What version of Go are you using (
go version
)?Does this issue reproduce with the latest release?
✔️
What operating system and processor architecture are you using (
go env
)?go env
OutputWhat did you do?
https://play.golang.org/p/RTw-u_iiYfK
What did you expect to see?
What did you see instead?
I did not expect
RawPath
to be unset in the first case, when the value set inPath
is different than the input tosetPath
Wondering if https://github.com/golang/go/blob/master/src/net/url/url.go#L669 is meant to be:
and if not, why the discrepancy based on the input path containing a
%20
vs a%2F
?Thanks
The text was updated successfully, but these errors were encountered: