]> Cypherpunks repositories - gostls13.git/commit
Revert "net/url: consider an empty base Path as equivalent to / in JoinPath"
authorRuss Cox <rsc@golang.org>
Thu, 14 Mar 2024 13:50:37 +0000 (13:50 +0000)
committerGopher Robot <gobot@golang.org>
Thu, 14 Mar 2024 16:01:25 +0000 (16:01 +0000)
commit4a1038fa52db57cee23a76fd2ea86247eff42f29
tree901087adf85812c3da919e526d2d789e2d156a1e
parentbe58fd00707a6e90cd868c279e0fd348a9ae7092
Revert "net/url: consider an empty base Path as equivalent to / in JoinPath"

This reverts commit a46285f8c2389b92952c1484daacfccf70a17047 (CL 469935).

Reason for revert: This breaks a variety of code inside Google
that seem representative of possible external real-world usage.

If we roll this forward again we should include a GODEBUG like
urljoinpathslash=0 to go back to the old behavior.

Change-Id: I6cd8e9888a0c088669dc5634418372252289e074
Reviewed-on: https://go-review.googlesource.com/c/go/+/571655
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Than McIntosh <thanm@google.com>
Auto-Submit: Russ Cox <rsc@golang.org>
src/net/url/url.go
src/net/url/url_test.go