Typo
This commit is contained in:
parent
540e8bcc79
commit
dec43d2dba
1 changed files with 1 additions and 1 deletions
|
@ -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++
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue