From 9ad7b0e67c90697893f188323a32590fbecd5a65 Mon Sep 17 00:00:00 2001 From: Anhgelus Morhtuuzh Date: Mon, 22 Dec 2025 18:51:42 +0100 Subject: fix(storage): does not store stats if request fails --- backend/data.go | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'backend/data.go') diff --git a/backend/data.go b/backend/data.go index 5bc5391..2f2e06d 100644 --- a/backend/data.go +++ b/backend/data.go @@ -111,6 +111,11 @@ func (d *data) handleGeneric(w http.ResponseWriter, r *http.Request, name string if err != nil { panic(err) } + if name == "404" { + w.WriteHeader(http.StatusNotFound) + return + } + UpdateStats(r) } func (d *data) handleRSS(w http.ResponseWriter, r *http.Request, custom dataUsable) { -- cgit v1.2.3