exclude asn blocking on asset routes; properly fallback title status number
This commit is contained in:
@@ -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]
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user