|
// RedirectSlashes is a middleware that will match request paths with a trailing |
http.FileServer will redirect requests for a directory without the trailing slash to include the trailing slash. If a chi user has enabled the redirect slashes middleware, that will then redirect the request back and so on.
This edge case should be documented.
chi/middleware/strip.go
Line 29 in 44932d2
http.FileServer will redirect requests for a directory without the trailing slash to include the trailing slash. If a chi user has enabled the redirect slashes middleware, that will then redirect the request back and so on.
This edge case should be documented.