From 7a29519c5aa6eeb90660088952417da3e983afbd Mon Sep 17 00:00:00 2001 From: ZaniaDevelopper Date: Wed, 21 Feb 2018 14:48:09 +0300 Subject: [PATCH] Fixes bad copy/paste Former-commit-id: 437b60bc6b37d8a755198fb97809c61b9c18004e --- _examples/routing/fallback-handlers/main.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/_examples/routing/fallback-handlers/main.go b/_examples/routing/fallback-handlers/main.go index 3c1e8e78..66308ae4 100644 --- a/_examples/routing/fallback-handlers/main.go +++ b/_examples/routing/fallback-handlers/main.go @@ -11,11 +11,11 @@ func main() { // will handle *all* expect DELETE requests, even if there is no routes app.Get("/action/{p}", h) - app.Run(iris.Addr(":8080"), ctx.Method(), ctx.Path(), iris.WithoutServerError(iris.ErrServerClosed)) + app.Run(iris.Addr(":8080"), iris.WithoutServerError(iris.ErrServerClosed)) } func h(ctx iris.Context) { - ctx.Writef("[%s] %s : Parameter = `%s`", ctx.Params().Get("p")) + ctx.Writef("[%s] %s : Parameter = `%s`", ctx.Method(), ctx.Path(), ctx.Params().Get("p")) } func fallbackHandler(ctx iris.Context) {