change the not found content

This commit is contained in:
2026-01-20 12:47:58 -05:00
parent 03af8d61c7
commit af57f1a49d
2 changed files with 8 additions and 2 deletions

View File

@@ -40,7 +40,13 @@ func Start(dir string) {
err = readArchive(w, route)
} else {
w.WriteHeader(http.StatusNotFound)
w.Write([]byte("not found :("))
w.Write([]byte(`<html>
<head><title>404 Not Found</title></head>
<body>
<center><h1>404 Not Found</h1></center>
<hr><center>fes</center>
</body>
</html>`))
}
return
}

View File

@@ -9,7 +9,7 @@ var gitCommit string = "devel"
const PROGRAM_NAME string = "fes"
const PROGRAM_NAME_LONG string = "fes/fSD"
const VERSION string = "1.0.1"
const VERSION string = "1.1.0"
func Version() {
fmt.Printf("%s version %s\n", PROGRAM_NAME_LONG, VERSION)