From aa275fb5cec01a6032af9fb3d90000e15c2a4f93 Mon Sep 17 00:00:00 2001 From: astaxie Date: Wed, 11 Jun 2014 13:26:45 +0800 Subject: [PATCH] beego:fix #639 --- staticfile.go | 4 ---- 1 file changed, 4 deletions(-) diff --git a/staticfile.go b/staticfile.go index 770db0cf..09f3018f 100644 --- a/staticfile.go +++ b/staticfile.go @@ -35,10 +35,6 @@ func serverStaticRouter(ctx *context.Context) { if len(requestPath) > len(prefix) && requestPath[len(prefix)] != '/' { continue } - if requestPath == prefix && prefix[len(prefix)-1] != '/' { - http.Redirect(ctx.ResponseWriter, ctx.Request, requestPath+"/", 302) - return - } file := path.Join(staticDir, requestPath[len(prefix):]) finfo, err := os.Stat(file) if err != nil {