1
0
mirror of https://github.com/gofiber/fiber.git synced 2025-02-23 10:44:02 +00:00

remove the duplicate statement

This commit is contained in:
kiyon 2020-06-20 14:41:50 +08:00
parent 08104a077b
commit bd4c250f41

2
ctx.go
View File

@ -645,8 +645,6 @@ func (ctx *Ctx) Params(key string) string {
// Optionally, you could override the path. // Optionally, you could override the path.
func (ctx *Ctx) Path(override ...string) string { func (ctx *Ctx) Path(override ...string) string {
if len(override) != 0 && ctx.path != override[0] { if len(override) != 0 && ctx.path != override[0] {
// Set new path to request
ctx.Fasthttp.Request.URI().SetPath(override[0])
// Set new path to context // Set new path to context
ctx.path = override[0] ctx.path = override[0]
ctx.pathOriginal = ctx.path ctx.pathOriginal = ctx.path