diff --git a/cmd/web.go b/cmd/web.go index 15cec05b02..5af9ad9f2d 100644 --- a/cmd/web.go +++ b/cmd/web.go @@ -639,6 +639,9 @@ func runWeb(ctx *cli.Context) error { m.Get("/objects/:oid/:filename", lfs.ObjectOidHandler) m.Any("/objects/:oid", lfs.ObjectOidHandler) m.Post("/objects", lfs.PostHandler) + m.Any("/*", func(ctx *context.Context) { + ctx.Handle(404, "", nil) + }) }, ignSignInAndCsrf) m.Any("/*", ignSignInAndCsrf, repo.HTTP) m.Head("/tasks/trigger", repo.TriggerTask)