mirror of
https://github.com/HoneyryderChuck/httpx.git
synced 2025-11-27 00:03:01 -05:00
Merge branch 'pcriv-master-patch-67803' into 'master'
Allow retry_after to be a Float See merge request honeyryderchuck/httpx!194
This commit is contained in:
commit
f508fc32c9
@ -41,7 +41,7 @@ module HTTPX
|
||||
def option_retry_after(value)
|
||||
# return early if callable
|
||||
unless value.respond_to?(:call)
|
||||
value = Integer(value)
|
||||
value = Float(value)
|
||||
raise TypeError, ":retry_after must be positive" unless value.positive?
|
||||
end
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user