default timeout is now the per operation one

This commit is contained in:
HoneyryderChuck 2017-12-08 18:45:29 +00:00
parent b9bdd7bd0b
commit 690fcaf3d2
2 changed files with 2 additions and 2 deletions

View File

@ -41,7 +41,7 @@ module HTTPX
defaults = {
:proxy => {},
:ssl => {},
:timeout => Timeout.by(:null),
:timeout => Timeout.by(:per_operation),
:headers => {},
:cookies => {},
:max_concurrent_requests => MAX_CONCURRENT_REQUESTS,

View File

@ -62,7 +62,7 @@ class OptionsSpec < Minitest::Test
:body => nil,
:follow => nil,
:form => {:bar => "bar"},
:timeout => Timeout::Null.new,
:timeout => Timeout::PerOperation.new,
:ssl => {:foo => "bar"},
:headers => {"Foo" => "foo", "Accept" => "xml", "Bar" => "bar"},
:proxy => {:proxy_address => "127.0.0.1", :proxy_port => 8080},