Allow setting of ssl version

This commit is contained in:
Dor Shahaf 2012-04-11 20:03:50 +03:00
parent 204d7c46a8
commit 5cbfd2cdbf

View File

@ -34,6 +34,7 @@ module Faraday
http.ca_path = ssl[:ca_path] if ssl[:ca_path]
http.cert_store = ssl[:cert_store] if ssl[:cert_store]
http.verify_depth = ssl[:verify_depth] if ssl[:verify_depth]
http.ssl_version = ssl[:version] if ssl[:version]
end
http.read_timeout = http.open_timeout = req[:timeout] if req[:timeout]