]> source.dussan.org Git - gitea.git/commitdiff
bug fixed for download 404 from repo's home page
authorlunnyxiao <xiaolunwen@gmail.com>
Wed, 24 Sep 2014 13:05:09 +0000 (21:05 +0800)
committerlunnyxiao <xiaolunwen@gmail.com>
Wed, 24 Sep 2014 13:05:09 +0000 (21:05 +0800)
cmd/web.go

index e2c929c1c3460ee8cb8b6cca20869dd54088ea71..0d472cd73a54a0322e6b49a5c9c702f8f42d22de 100644 (file)
@@ -356,6 +356,7 @@ func runWeb(*cli.Context) {
                r.Get("/commit/:branchname/*", repo.Diff)
                r.Get("/releases", repo.Releases)
                r.Get("/archive/:branchname/*.*", repo.Download)
+               r.Get("/archive/*.*", repo.Download)
                r.Get("/compare/:before([a-z0-9]+)...:after([a-z0-9]+)", repo.CompareDiff)
        }, ignSignIn, middleware.RepoAssignment(true, true))