1
0
mirror of https://github.com/containous/traefik.git synced 2025-03-19 18:50:12 +03:00

Merge pull request #688 from ydubreuil/fix-clean-url

Disable gorilla/mux URL cleaning to prevent sending redirect
This commit is contained in:
Emile Vauge 2016-09-20 21:14:39 +02:00 committed by GitHub
commit 009057cb87

View File

@ -668,6 +668,7 @@ func (server *Server) buildDefaultHTTPRouter() *mux.Router {
router := mux.NewRouter()
router.NotFoundHandler = http.HandlerFunc(notFoundHandler)
router.StrictSlash(true)
router.SkipClean(true)
return router
}