Add default case to router

pull/4/head
maru 7 months ago
parent 7b9a866570
commit da572ebdd9
No known key found for this signature in database
GPG Key ID: 37689350E9CD0F0D

@ -311,6 +311,9 @@ func (s *Server) ServeHTTP(w http.ResponseWriter, r *http.Request) {
} }
w.Write([]byte(strconv.Itoa(count))) w.Write([]byte(strconv.Itoa(count)))
default:
httpError(w, r, fmt.Errorf("unknown endpoint"), http.StatusNotFound)
return
} }
} }

Loading…
Cancel
Save