diff --git a/_examples/routing/custom-context/method-overriding/main.go b/_examples/routing/custom-context/method-overriding/main.go index dbbdd05d..826dcd8f 100644 --- a/_examples/routing/custom-context/method-overriding/main.go +++ b/_examples/routing/custom-context/method-overriding/main.go @@ -70,7 +70,7 @@ func main() { // this will be executed by the MyContext.Context // if MyContext is not directly define the View function by itself. app.Handle("GET", "/hi/{firstname:alphabetical}", recordWhichContextJustForProofOfConcept, func(ctx iris.Context) { - firstname := ctx.Values().GetString("firstname") + firstname := ctx.Params().Get("firstname") // ctx.Values().GetString("firstname") ctx.ViewData("firstname", firstname) ctx.Gzip(true)