lib/httpx/chainable.rb in httpx-0.2.0 vs lib/httpx/chainable.rb in httpx-0.2.1
- old
+ new
@@ -11,10 +11,10 @@
def request(verb, uri, **options)
branch(default_options).request(verb, uri, **options)
end
def timeout(**args)
- branch(timeout: args)
+ branch(default_options.with_timeout(args))
end
def headers(headers)
branch(default_options.with_headers(headers))
end