New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
net/url: new JoinPath function and method use Path instead of EscapedPath() #53763
Comments
May I try to take this issue? I'd be very happy to open a pull request to resolve it :) |
|
Change https://go.dev/cl/416774 mentions this issue: |
1 similar comment
This makes sense to me. |
The function calls url.Parse, which turns %2f into /. So I think the output should be /a/b/a/b, no? |
|
@carlmjohnson See this example
|
Fixes golang#53763 Change-Id: I08b53f159ebdce7907e8cc17316fd0c982363239 Reviewed-on: https://go-review.googlesource.com/c/go/+/416774 TryBot-Result: Gopher Robot <gobot@golang.org> Reviewed-by: Damien Neil <dneil@google.com> Reviewed-by: Bryan Mills <bcmills@google.com> Run-TryBot: Ian Lance Taylor <iant@golang.org>
What version of Go are you using (
go version
)?Does this issue reproduce with the latest release?
Yes.
What did you do?
https://go.dev/play/p/YS_-s65X9n2?v=gotip
What did you expect to see?
What did you see instead?
How to fix
In the
JoinPath
method,should be written as
The text was updated successfully, but these errors were encountered: