diff --git a/http.go b/http.go index a41bd51..697e7af 100644 --- a/http.go +++ b/http.go @@ -55,7 +55,7 @@ func (s *sb) setupHTTP() { return } - if vol < 0 && vol > 100 { + if vol < 0 || vol > 100 { http.Error(w, fmt.Sprintf("number too small or too large: %s", strVol), http.StatusBadRequest) return }