Browse Source

bug fixed for download 404 from repo's home page

for-closed-social
lunnyxiao 10 years ago
parent
commit
612fdb98df
1 changed files with 1 additions and 0 deletions
  1. +1
    -0
      cmd/web.go

+ 1
- 0
cmd/web.go View 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))

Loading…
Cancel
Save