From 512ddf8a708d8d878c1175486af32e6d33e818fb Mon Sep 17 00:00:00 2001 From: astaxie Date: Mon, 24 Jun 2013 23:56:53 +0800 Subject: [PATCH] fix small bug for not return --- router.go | 1 + 1 file changed, 1 insertion(+) diff --git a/router.go b/router.go index 1a4a0388..3bf99ef1 100644 --- a/router.go +++ b/router.go @@ -326,6 +326,7 @@ func (p *ControllerRegistor) ServeHTTP(rw http.ResponseWriter, r *http.Request) if finfo.IsDir() && !DirectoryIndex { if h, ok := ErrorMaps["403"]; ok { h(w, r) + return } else { w.Header().Set("Content-Type", "text/plain; charset=utf-8") w.WriteHeader(403)