From 85055d292104bcb39663667ede946b165452fb89 Mon Sep 17 00:00:00 2001 From: maru Date: Mon, 8 Apr 2024 21:34:42 -0400 Subject: [PATCH] Fix variable re-use bug --- api/generic.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/generic.go b/api/generic.go index a9789db..4a7b470 100644 --- a/api/generic.go +++ b/api/generic.go @@ -199,7 +199,7 @@ func (s *Server) ServeHTTP(w http.ResponseWriter, r *http.Request) { return } - if save == nil { + if save == nil || r.URL.Path == "/savedata/update" { w.WriteHeader(http.StatusOK) return }