From 624f6258eeb02e28d9a8dd4de2c6bd14b5b1b562 Mon Sep 17 00:00:00 2001 From: "asta.xie" Date: Wed, 12 Mar 2014 18:29:45 +0800 Subject: [PATCH] fix read / --- router.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/router.go b/router.go index a4e8bf08..7d396387 100644 --- a/router.go +++ b/router.go @@ -555,7 +555,7 @@ func (p *ControllerRegistor) ServeHTTP(rw http.ResponseWriter, r *http.Request) } } if strings.HasPrefix(r.URL.Path, prefix) { - if len(r.URL.Path) > len(prefix) && r.URL.Path[len(prefix)+1] != '/' { + if len(r.URL.Path) > len(prefix) && r.URL.Path[len(prefix)] != '/' { continue } file := path.Join(staticDir, r.URL.Path[len(prefix):])