From b16ef12ac0ae53bbff3161ba53b141b12a43f6e9 Mon Sep 17 00:00:00 2001 From: astaxie Date: Tue, 26 Nov 2013 14:13:23 +0800 Subject: [PATCH] fix test --- filter.go | 1 + router_test.go | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/filter.go b/filter.go index 2387e3a7..d4a6b60b 100644 --- a/filter.go +++ b/filter.go @@ -9,6 +9,7 @@ type FilterRouter struct { regex *regexp.Regexp filterFunc FilterFunc hasregex bool + params map[int]string } func (mr *FilterRouter) ValidRouter(router string) bool { diff --git a/router_test.go b/router_test.go index e3aef727..2b1a8a44 100644 --- a/router_test.go +++ b/router_test.go @@ -20,7 +20,7 @@ func (this *TestController) List() { } func (this *TestController) Myext() { - this.Ctx.Output.Body([]byte(this.Ctx.Input.Params(":ext"))) + this.Ctx.Output.Body([]byte(this.Ctx.Input.Param(":ext"))) } func (this *TestController) GetUrl() {