From 25268577a53bd326b21866c792d7ec390a6e4d94 Mon Sep 17 00:00:00 2001 From: Unknwon Date: Wed, 24 Sep 2014 17:43:33 -0400 Subject: Fix download archive issue --- cmd/web.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'cmd/web.go') diff --git a/cmd/web.go b/cmd/web.go index 0d472cd7..2376fd21 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)) -- cgit v1.2.3