lib/httpx/plugins/expect.rb in httpx-0.20.5 vs lib/httpx/plugins/expect.rb in httpx-0.21.0

- old
+ new

@@ -20,10 +20,10 @@ end end module OptionsMethods def option_expect_timeout(value) - seconds = Integer(value) + seconds = Float(value) raise TypeError, ":expect_timeout must be positive" unless seconds.positive? seconds end