parent
a2ffaa73b5
commit
c451e15254
5
http.go
5
http.go
|
@ -300,7 +300,10 @@ func Serve(actors map[string]Actor) {
|
||||||
if pageS == "" {
|
if pageS == "" {
|
||||||
page = 0
|
page = 0
|
||||||
} else {
|
} else {
|
||||||
page, _ = strconv.Atoi(pageS)
|
page, err = strconv.Atoi(pageS)
|
||||||
|
if err != nil {
|
||||||
|
page = 1
|
||||||
|
}
|
||||||
}
|
}
|
||||||
response, _ := actor.getPeers(page, collection)
|
response, _ := actor.getPeers(page, collection)
|
||||||
w.Write(response)
|
w.Write(response)
|
||||||
|
|
Loading…
Reference in New Issue