This commit is contained in:
Daniel Cadenas 2010-11-18 02:48:36 +08:00 committed by Erik Michaels-Ober
parent 67f5c0b580
commit 87baca6cf5

View File

@ -26,7 +26,7 @@ module Faraday
http.ca_file = ssl[:ca_file] if ssl[:ca_file]
end
req = env[:request]
http.read_timeout = net.open_timeout = req[:timeout] if req[:timeout]
http.read_timeout = http.open_timeout = req[:timeout] if req[:timeout]
http.open_timeout = req[:open_timeout] if req[:open_timeout]
full_path = full_path_for(env[:url].path, env[:url].query, env[:url].fragment)