Skip to content

Commit 7dcc0a1

Browse files
wxiaoguangwolfogre
andauthored
Update routers/install/routes.go
Co-authored-by: Jason Song <[email protected]>
1 parent b8f3880 commit 7dcc0a1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

routers/install/routes.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,5 +123,5 @@ func installNotFound(w http.ResponseWriter, req *http.Request) {
123123
// do not use 30x status, because the "post-install" page needs to use 404/200 to detect if Gitea has been installed.
124124
// the fetch API could follow 30x requests to the page with 200 status.
125125
w.WriteHeader(http.StatusNotFound)
126-
_, _ = w.Write([]byte(fmt.Sprintf(`Not Found. <a href="%s">Go to default page</a>.`, html.EscapeString(setting.AppSubURL+"/"))))
126+
_, _ = fmt.Fprintf(w, `Not Found. <a href="%s">Go to default page</a>.`, html.EscapeString(setting.AppSubURL+"/"))
127127
}

0 commit comments

Comments
 (0)