From 7c0d0900acbeab9273dc5cb71bfc23cff214be57 Mon Sep 17 00:00:00 2001 From: astaxie Date: Wed, 11 Jun 2014 01:19:39 +0800 Subject: [PATCH] beego:fix static file router --- beego.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/beego.go b/beego.go index 950d8e7f..80718604 100644 --- a/beego.go +++ b/beego.go @@ -381,7 +381,7 @@ func initBeforeHttpRun() { middleware.RegisterErrorHandler() for u, _ := range StaticDir { - Get(u, serverStaticRouter) + Get(u+"/*", serverStaticRouter) } }