From 7dcc0a1cdad5d3d718b56d24e811f7d6dbe11fb9 Mon Sep 17 00:00:00 2001 From: wxiaoguang Date: Wed, 1 Mar 2023 11:27:49 +0800 Subject: [PATCH] Update routers/install/routes.go Co-authored-by: Jason Song --- routers/install/routes.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/routers/install/routes.go b/routers/install/routes.go index 335bf642c3e7c..a8efc92fe17ca 100644 --- a/routers/install/routes.go +++ b/routers/install/routes.go @@ -123,5 +123,5 @@ func installNotFound(w http.ResponseWriter, req *http.Request) { // do not use 30x status, because the "post-install" page needs to use 404/200 to detect if Gitea has been installed. // the fetch API could follow 30x requests to the page with 200 status. w.WriteHeader(http.StatusNotFound) - _, _ = w.Write([]byte(fmt.Sprintf(`Not Found. Go to default page.`, html.EscapeString(setting.AppSubURL+"/")))) + _, _ = fmt.Fprintf(w, `Not Found. Go to default page.`, html.EscapeString(setting.AppSubURL+"/")) }