exclude asn blocking on asset routes; properly fallback title status number

This commit is contained in:
2026-11-22 22:13:39 -05:00
parent 1834abc719
commit 993b6317a5
2 changed files with 9 additions and 4 deletions
+1 -1
View File
@@ -140,7 +140,7 @@ func FaqHandler(pages *Pages, cfg config.Config) http.HandlerFunc {
func (pages *Pages) HTTPError(w http.ResponseWriter, r *http.Request, message string, status int, title ...string) {
if strings.Contains(r.Header.Get("Accept"), "text/html") {
t := fmt.Sprintf("%c", status)
t := fmt.Sprintf("errror %d", status)
if len(title) > 0 {
t = title[0]
}