summaryrefslogtreecommitdiffstats
path: root/cmd/web.go
diff options
context:
space:
mode:
authorUnknwon <joe2010xtmf@163.com>2014-09-24 17:43:33 -0400
committerUnknwon <joe2010xtmf@163.com>2014-09-24 17:43:33 -0400
commit25268577a53bd326b21866c792d7ec390a6e4d94 (patch)
tree457fbb28905efe99389e4db5bcfb413ca05f4d4d /cmd/web.go
parent612fdb98df0ff84c81603a5c8d66a5f2f4395bd5 (diff)
downloadgitea-25268577a53bd326b21866c792d7ec390a6e4d94.tar.gz
gitea-25268577a53bd326b21866c792d7ec390a6e4d94.zip
Fix download archive issue
Diffstat (limited to 'cmd/web.go')
-rw-r--r--cmd/web.go3
1 files changed, 1 insertions, 2 deletions
diff --git a/cmd/web.go b/cmd/web.go
index 0d472cd73a..2376fd2126 100644
--- a/cmd/web.go
+++ b/cmd/web.go
@@ -343,6 +343,7 @@ func runWeb(*cli.Context) {
r.Get("/issues/:index", repo.ViewIssue)
r.Get("/pulls", repo.Pulls)
r.Get("/branches", repo.Branches)
+ r.Get("/archive/*", repo.Download)
}, ignSignIn, middleware.RepoAssignment(true))
m.Group("/:username/:reponame", func(r *macaron.Router) {
@@ -355,8 +356,6 @@ func runWeb(*cli.Context) {
r.Get("/commit/:branchname", repo.Diff)
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))