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
}