b16ef12a by astaxie

fix test

1 parent f9e732b5
...@@ -9,6 +9,7 @@ type FilterRouter struct { ...@@ -9,6 +9,7 @@ type FilterRouter struct {
9 regex *regexp.Regexp 9 regex *regexp.Regexp
10 filterFunc FilterFunc 10 filterFunc FilterFunc
11 hasregex bool 11 hasregex bool
12 params map[int]string
12 } 13 }
13 14
14 func (mr *FilterRouter) ValidRouter(router string) bool { 15 func (mr *FilterRouter) ValidRouter(router string) bool {
......
...@@ -20,7 +20,7 @@ func (this *TestController) List() { ...@@ -20,7 +20,7 @@ func (this *TestController) List() {
20 } 20 }
21 21
22 func (this *TestController) Myext() { 22 func (this *TestController) Myext() {
23 this.Ctx.Output.Body([]byte(this.Ctx.Input.Params(":ext"))) 23 this.Ctx.Output.Body([]byte(this.Ctx.Input.Param(":ext")))
24 } 24 }
25 25
26 func (this *TestController) GetUrl() { 26 func (this *TestController) GetUrl() {
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!