Skip to content
Snippets Groups Projects
Verified Commit 6e60d5e7 authored by Alexander Olofsson's avatar Alexander Olofsson
Browse files

Add missing Client#open_timeout= method

parent 6f6a0b28
No related branches found
No related tags found
No related merge requests found
Pipeline #121165 failed
...@@ -32,6 +32,11 @@ module Passwordstate ...@@ -32,6 +32,11 @@ module Passwordstate
@api_type || (auth_data.key?(:apikey) ? :api : :winapi) @api_type || (auth_data.key?(:apikey) ? :api : :winapi)
end end
def open_timeout=(sec)
@open_timeout = sec
@http.open_timeout = sec if @http
end
def timeout=(sec) def timeout=(sec)
@timeout = sec @timeout = sec
@http.read_timeout = sec if @http @http.read_timeout = sec if @http
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment