lib/flexirest/request.rb in flexirest-1.2.10 vs lib/flexirest/request.rb in flexirest-1.2.11

- old
+ new

@@ -326,9 +326,12 @@ request_options[:api_auth] = { :api_auth_access_id => api_auth_access_id, :api_auth_secret_key => api_auth_secret_key } end + if @method[:options][:timeout] + request_options[:timeout] = @method[:options][:timeout] + end case http_method when :get response = connection.get(@url, request_options) when :put