diff options
author | Brian Picciano <mediocregopher@gmail.com> | 2021-08-30 20:08:51 -0600 |
---|---|---|
committer | Brian Picciano <mediocregopher@gmail.com> | 2021-08-30 20:44:45 -0600 |
commit | 9343d2ea697f13e52e9199fce62a959f1954f580 (patch) | |
tree | e1e36e330a3c9891bfd8a625229a9b417ad89afa /srv/chat/chat.go | |
parent | 3e9a17abb9a9d63af3c260fba9dc404dd9c59ade (diff) |
add chat handlers and only allow POST methods
Diffstat (limited to 'srv/chat/chat.go')
-rw-r--r-- | srv/chat/chat.go | 2 |
1 files changed, 1 insertions, 1 deletions
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 } |