mirror of
https://codeberg.org/Codeberg/pages-server.git
synced 2025-04-24 22:06:57 +00:00
format code
This commit is contained in:
parent
019d942249
commit
aadf709a3e
1 changed files with 0 additions and 1 deletions
|
@ -26,7 +26,6 @@ func generateResponse(msg string, statusCode int) string {
|
||||||
msg = strings.ReplaceAll(NotFoundPage,
|
msg = strings.ReplaceAll(NotFoundPage,
|
||||||
"%status%",
|
"%status%",
|
||||||
strconv.Itoa(statusCode)+" "+errorMessage(statusCode))
|
strconv.Itoa(statusCode)+" "+errorMessage(statusCode))
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
msg = strings.ReplaceAll(
|
msg = strings.ReplaceAll(
|
||||||
strings.ReplaceAll(ErrorPage, "%message%", template.HTMLEscapeString(msg)),
|
strings.ReplaceAll(ErrorPage, "%message%", template.HTMLEscapeString(msg)),
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue