Fix path parsing

This commit is contained in:
DarthSim
2018-10-08 13:42:08 +06:00
parent 4e2217d1b0
commit d4ca9af5be
2 changed files with 4 additions and 4 deletions

View File

@@ -624,7 +624,7 @@ func parsePathSimple(parts []string, acceptHeader string) (string, processingOpt
}
func parsePath(ctx context.Context, rctx *fasthttp.RequestCtx) (context.Context, error) {
path := string(rctx.RequestURI())
path := string(rctx.Path())
parts := strings.Split(strings.TrimPrefix(path, "/"), "/")
var acceptHeader string