lib/timber/cli/api.rb in timber-2.3.0 vs lib/timber/cli/api.rb in timber-2.3.1

- old
+ new

@@ -157,9 +157,14 @@ elsif code >= 500 raise ServerError.new else res end + rescue OpenSSL::SSL::SSLError => e + if http.ssl_version != :SSLv23 + http.ssl_version = :SSLv23 + retry + end end def http @http ||= begin http = Net::HTTP.new(TIMBER_API_URI.host, TIMBER_API_URI.port) \ No newline at end of file