diff --git a/http.go b/http.go index 088418f..2d77d2c 100644 --- a/http.go +++ b/http.go @@ -294,5 +294,8 @@ func (d *dynamicHandler) swapHandler(h http.Handler) { } func (d *dynamicHandler) ServeHTTP(w http.ResponseWriter, r *http.Request) { + // Fix to use Path routing instead of RawPath routing in Chi + r.URL.RawPath = "" + // Serve request d.realHandler.Load().(http.Handler).ServeHTTP(w, r) }