0
0
Fork 0

fix bug which prevented size=0 via JSON

This commit is contained in:
Marty Schoch 2014-11-19 15:53:26 -05:00
parent d673f3404d
commit 19305c6b5f
1 changed files with 2 additions and 2 deletions

View File

@ -203,10 +203,10 @@ func (r *SearchRequest) UnmarshalJSON(input []byte) error {
return err
}
if r.Size <= 0 {
if r.Size < 0 {
r.Size = 10
}
if r.From <= 0 {
if r.From < 0 {
r.From = 0
}