fix: remove skip clean

This commit is contained in:
Henrique Dias
2026-02-08 08:02:03 +01:00
parent ff2f00498c
commit 489af403a1

View File

@@ -35,11 +35,6 @@ func NewHandler(
})
index, static := getStaticHandlers(store, server, assetsFs)
// NOTE: This fixes the issue where it would redirect if people did not put a
// trailing slash in the end. I hate this decision since this allows some awful
// URLs https://www.gorillatoolkit.org/pkg/mux#Router.SkipClean
r = r.SkipClean(true)
monkey := func(fn handleFunc, prefix string) http.Handler {
return handle(fn, prefix, store, server)
}