From 9c75899134deb15810e7edb595e034a0060a0c38 Mon Sep 17 00:00:00 2001 From: "binjie.zhou" Date: Wed, 20 Dec 2017 03:44:54 +0000 Subject: [PATCH] read from env first --- lib/openid/fetchers.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/openid/fetchers.rb b/lib/openid/fetchers.rb index db5443f0..4d663b49 100644 --- a/lib/openid/fetchers.rb +++ b/lib/openid/fetchers.rb @@ -117,7 +117,7 @@ class StandardFetcher USER_AGENT = "ruby-openid/#{OpenID::VERSION} (#{RUBY_PLATFORM})" REDIRECT_LIMIT = 5 - TIMEOUT = 60 + TIMEOUT = ENV['RUBY_OPENID_FETCHER_TIMEOUT'] || 60 attr_accessor :ca_file attr_accessor :timeout