mirror of
https://github.com/gofiber/fiber.git
synced 2025-02-23 11:43:41 +00:00
remove the duplicate statement
This commit is contained in:
parent
08104a077b
commit
bd4c250f41
2
ctx.go
2
ctx.go
@ -645,8 +645,6 @@ func (ctx *Ctx) Params(key string) string {
|
||||
// Optionally, you could override the path.
|
||||
func (ctx *Ctx) Path(override ...string) string {
|
||||
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
|
||||
ctx.path = override[0]
|
||||
ctx.pathOriginal = ctx.path
|
||||
|
Loading…
x
Reference in New Issue
Block a user