From 9343d2ea697f13e52e9199fce62a959f1954f580 Mon Sep 17 00:00:00 2001 From: Brian Picciano Date: Mon, 30 Aug 2021 20:08:51 -0600 Subject: add chat handlers and only allow POST methods --- srv/chat/chat.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'srv/chat/chat.go') diff --git a/srv/chat/chat.go b/srv/chat/chat.go index ae305ac..acb7b2d 100644 --- a/srv/chat/chat.go +++ b/srv/chat/chat.go @@ -84,7 +84,7 @@ type HistoryOpts struct { } func (o HistoryOpts) sanitize() (HistoryOpts, error) { - if o.Limit < 0 || o.Limit > 100 { + if o.Limit <= 0 || o.Limit > 100 { o.Limit = 100 } -- cgit v1.2.3