diff --git a/http.go b/http.go index 4b86876..205ed55 100644 --- a/http.go +++ b/http.go @@ -300,7 +300,10 @@ func Serve(actors map[string]Actor) { if pageS == "" { page = 0 } else { - page, _ = strconv.Atoi(pageS) + page, err = strconv.Atoi(pageS) + if err != nil { + page = 1 + } } response, _ := actor.getPeers(page, collection) w.Write(response)