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 /cmd | |
parent | bd55b78775f8dd04448d30e32f175918ee2b702e (diff) | |
download | gitea-612fdb98df0ff84c81603a5c8d66a5f2f4395bd5.tar.gz gitea-612fdb98df0ff84c81603a5c8d66a5f2f4395bd5.zip |
bug fixed for download 404 from repo's home page
Diffstat (limited to 'cmd')
-rw-r--r-- | cmd/web.go | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/cmd/web.go b/cmd/web.go index e2c929c1c3..0d472cd73a 100644 --- a/cmd/web.go +++ b/cmd/web.go @@ -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)) |