Commit b16ef12a authored by astaxie's avatar astaxie

fix test

parent f9e732b5
...@@ -9,6 +9,7 @@ type FilterRouter struct { ...@@ -9,6 +9,7 @@ type FilterRouter struct {
regex *regexp.Regexp regex *regexp.Regexp
filterFunc FilterFunc filterFunc FilterFunc
hasregex bool hasregex bool
params map[int]string
} }
func (mr *FilterRouter) ValidRouter(router string) bool { func (mr *FilterRouter) ValidRouter(router string) bool {
......
...@@ -20,7 +20,7 @@ func (this *TestController) List() { ...@@ -20,7 +20,7 @@ func (this *TestController) List() {
} }
func (this *TestController) Myext() { 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() { func (this *TestController) GetUrl() {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment