Fix variable re-use bug

This commit is contained in:
maru committed 2024-04-08 21:34:42 -04:00
1 parent d97e07b522
commit 85055d2921
1 file changed
+1 -1
+1 -1
View File
@@ -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
}