From dec43d2dbac2a67192d7be14ef9c3fdfb2923dd3 Mon Sep 17 00:00:00 2001 From: Imbus <> Date: Tue, 20 Feb 2024 15:54:40 +0100 Subject: [PATCH] Typo --- backend/cmd/main.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/cmd/main.go b/backend/cmd/main.go index f06640a..5892d5a 100644 --- a/backend/cmd/main.go +++ b/backend/cmd/main.go @@ -19,7 +19,7 @@ type ButtonState struct { // Keep in mind that concurrent state access is not (usually) safe // And will in pracice be guarded by a mutex func (b *ButtonState) pressHandler(w http.ResponseWriter, r *http.Request) { - if r.Method != "POST" { + if r.Method == "POST" { b.PressCount++ }