You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Do not add a trailing slash and redirect if the path already
ends in a slash.
Also, and unrelatedly, add a test for cleanPath.
Fixesgolang#65624.
Change-Id: Ifcf9edc929d2eb6db88132c09d2bade85c5dda3d
Reviewed-on: https://go-review.googlesource.com/c/go/+/562557
Reviewed-by: Damien Neil <dneil@google.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Go version
go version go1.22.0 linux/amd64
Output of
go env
in your module/workspace:What did you do?
https://go.dev/play/p/obFHzvRU_DL
Register a pattern, and make a request to a prefix of the pattern
What did you see happen?
When used with an http client, this results in a redirect loop (get
/
, redirected to/
)What did you expect to see?
Return a 404 for no matching routes.
The text was updated successfully, but these errors were encountered: