summaryrefslogtreecommitdiffstats
path: root/routers
diff options
context:
space:
mode:
authorAntoine GIRARD <sapk@users.noreply.github.com>2017-11-29 00:35:23 +0100
committerLauris BH <lauris@nix.lv>2017-11-29 01:35:23 +0200
commit4035ab05fa2d2c8ec95d346fea91cab8211dab17 (patch)
tree623d09ee6ab41eba7307cb3be7ce176458455dab /routers
parentc80d147fa911c2aa711bc3f310d7bef11681230b (diff)
downloadgitea-4035ab05fa2d2c8ec95d346fea91cab8211dab17.tar.gz
gitea-4035ab05fa2d2c8ec95d346fea91cab8211dab17.zip
Fix git lfs path (#3016)
* add suffix .git * Remove Content-Type on GET methods * Add migrations to force creation before any further potential migration
Diffstat (limited to 'routers')
-rw-r--r--routers/routes/routes.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/routers/routes/routes.go b/routers/routes/routes.go
index 2945c31476..56d4b5393b 100644
--- a/routers/routes/routes.go
+++ b/routers/routes/routes.go
@@ -679,7 +679,7 @@ func RegisterRoutes(m *macaron.Macaron) {
}, ignSignIn, context.RepoAssignment(), context.RepoRef(), context.UnitTypes(), context.LoadRepoUnits())
m.Group("/:reponame", func() {
- m.Group("/info/lfs", func() {
+ m.Group("\\.git/info/lfs", func() {
m.Post("/objects/batch", lfs.BatchHandler)
m.Get("/objects/:oid/:filename", lfs.ObjectOidHandler)
m.Any("/objects/:oid", lfs.ObjectOidHandler)