mirror of
https://github.com/go-gitea/gitea
synced 2025-08-05 17:18:21 +00:00
Signed-off-by: a1012112796 <1012112796@qq.com>
This commit is contained in:
@@ -111,7 +111,7 @@ func InstallRoutes() *web.Route {
|
||||
r.Get("/", routers.Install)
|
||||
r.Post("/", web.Bind(forms.InstallForm{}), routers.InstallPost)
|
||||
r.NotFound(func(w http.ResponseWriter, req *http.Request) {
|
||||
http.Redirect(w, req, setting.AppURL, 302)
|
||||
http.Redirect(w, req, setting.AppURL, http.StatusFound)
|
||||
})
|
||||
return r
|
||||
}
|
||||
|
Reference in New Issue
Block a user