lib/httpx/plugins/retries.rb in httpx-1.2.2 vs lib/httpx/plugins/retries.rb in httpx-1.2.3
- old
+ new
@@ -56,10 +56,10 @@
value
end
def option_max_retries(value)
num = Integer(value)
- raise TypeError, ":max_retries must be positive" unless num.positive?
+ raise TypeError, ":max_retries must be positive" unless num >= 0
num
end
def option_retry_change_requests(v)