diff options
author | lunnyxiao <xiaolunwen@gmail.com> | 2014-09-24 21:05:09 +0800 |
---|---|---|
committer | lunnyxiao <xiaolunwen@gmail.com> | 2014-09-24 21:05:09 +0800 |
commit | 612fdb98df0ff84c81603a5c8d66a5f2f4395bd5 (patch) | |
tree | f741456bcd67005e0695e21c13c393195f4d3221 | |
parent | bd55b78775f8dd04448d30e32f175918ee2b702e (diff) |
bug fixed for download 404 from repo's home page
-rw-r--r-- | cmd/web.go | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -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)) |