fix: remove skip clean
This commit is contained in:
@@ -35,11 +35,6 @@ func NewHandler(
|
|||||||
})
|
})
|
||||||
index, static := getStaticHandlers(store, server, assetsFs)
|
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 {
|
monkey := func(fn handleFunc, prefix string) http.Handler {
|
||||||
return handle(fn, prefix, store, server)
|
return handle(fn, prefix, store, server)
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user