From 567fd30bb9e3a92a4ce71002273fbb6e73c0e414 Mon Sep 17 00:00:00 2001 From: "ts-geliba.uilte@rakuten.com" Date: Tue, 17 Jul 2018 08:19:09 +0900 Subject: [PATCH] Using original path in router --- router.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/router.go b/router.go index f15c3a18..316c5f98 100644 --- a/router.go +++ b/router.go @@ -293,7 +293,7 @@ func (r *Router) Handler(ctx *fasthttp.RequestCtx) { defer r.recv(ctx) } - path := string(ctx.Path()) + path := string(ctx.URI().PathOriginal()) method := string(ctx.Method()) if root := r.trees[method]; root != nil { if f, tsr := root.getValue(path, ctx); f != nil {