mirror of
https://github.com/fiatjaf/nak.git
synced 2024-11-22 16:19:07 -05:00
don't set limit to zero on --stream
This commit is contained in:
parent
928c73513c
commit
84965f2253
2
req.go
2
req.go
|
@ -240,7 +240,7 @@ example:
|
||||||
|
|
||||||
if limit := c.Uint("limit"); limit != 0 {
|
if limit := c.Uint("limit"); limit != 0 {
|
||||||
filter.Limit = int(limit)
|
filter.Limit = int(limit)
|
||||||
} else if c.IsSet("limit") || c.Bool("stream") {
|
} else if c.IsSet("limit") {
|
||||||
filter.LimitZero = true
|
filter.LimitZero = true
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user