Skip to content

Commit

Permalink
Update routers/install/routes.go
Browse files Browse the repository at this point in the history
Co-authored-by: Jason Song <i@wolfogre.com>
  • Loading branch information
wxiaoguang and wolfogre authored Mar 1, 2023
1 parent b8f3880 commit 7dcc0a1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion routers/install/routes.go
Original file line number Diff line number Diff line change
Expand Up @@ -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. <a href="%s">Go to default page</a>.`, html.EscapeString(setting.AppSubURL+"/"))))
_, _ = fmt.Fprintf(w, `Not Found. <a href="%s">Go to default page</a>.`, html.EscapeString(setting.AppSubURL+"/"))
}

0 comments on commit 7dcc0a1

Please sign in to comment.