diff options
author | a1012112796 <1012112796@qq.com> | 2021-06-02 03:12:50 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-06-01 21:12:50 +0200 |
commit | 7081046b5f3665860b65eb0c0c12eb77a3994727 (patch) | |
tree | e030915e5c268f622ae4a86be6e7bc12dfaf2ed3 /routers/routes | |
parent | 072df3ff87c399bccfddfc0901e63ebacfaec73d (diff) | |
download | gitea-7081046b5f3665860b65eb0c0c12eb77a3994727.tar.gz gitea-7081046b5f3665860b65eb0c0c12eb77a3994727.zip |
Fix language switch for install page (#16043)
Signed-off-by: a1012112796 <1012112796@qq.com>
Diffstat (limited to 'routers/routes')
-rw-r--r-- | routers/routes/install.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/routers/routes/install.go b/routers/routes/install.go index 2a2c8f1d2b..0918da1a4b 100644 --- a/routers/routes/install.go +++ b/routers/routes/install.go @@ -103,7 +103,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 } |