This commit is contained in:
astaxie 2014-06-11 13:26:45 +08:00
parent deb553be7f
commit aa275fb5ce
1 changed files with 0 additions and 4 deletions

View File

@ -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 {