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

Merge pull request #406 from Fenny/master

Hot fix delimiter miss match, parser needs fix
This commit is contained in:
fenny 2020-05-23 18:42:29 -04:00 committed by GitHub
commit cdea1c806a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

5
ctx.go
View File

@ -600,6 +600,11 @@ func (ctx *Ctx) Params(key string) string {
continue
}
if ctx.route.routeParams[i] == key {
// #https://github.com/gofiber/fiber/issues/405
// @ReneWerner87
if len(ctx.values) <= i {
return ""
}
return ctx.values[i]
}
}