From 7b405e9af703e769132ecbd14a4312f2dba4385e Mon Sep 17 00:00:00 2001 From: astaxie Date: Tue, 26 Nov 2013 11:05:12 +0800 Subject: [PATCH] fix type --- router.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/router.go b/router.go index 39f6b2fc..513a3a86 100644 --- a/router.go +++ b/router.go @@ -268,7 +268,7 @@ func buildFilter(pattern string, filter FilterFunc) *FilterRouter { func (p *ControllerRegistor) AddFilter(pattern, action string, filter FilterFunc) { mr := buildFilter(pattern, filter) switch action { - case "BeforRouter": + case "BeforeRouter": p.filters[BeforeRouter] = append(p.filters[BeforeRouter], mr) case "AfterStatic": p.filters[AfterStatic] = append(p.filters[AfterStatic], mr)