From 6e60d5e712c99d3b2221dffc839986fd448792ce Mon Sep 17 00:00:00 2001 From: Alexander Olofsson <alexander.olofsson@liu.se> Date: Wed, 27 Mar 2024 09:42:05 +0100 Subject: [PATCH] Add missing Client#open_timeout= method --- lib/passwordstate/client.rb | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/lib/passwordstate/client.rb b/lib/passwordstate/client.rb index 2fe9b2c..129cf40 100644 --- a/lib/passwordstate/client.rb +++ b/lib/passwordstate/client.rb @@ -32,6 +32,11 @@ module Passwordstate @api_type || (auth_data.key?(:apikey) ? :api : :winapi) end + def open_timeout=(sec) + @open_timeout = sec + @http.open_timeout = sec if @http + end + def timeout=(sec) @timeout = sec @http.read_timeout = sec if @http -- GitLab