lib/bolt_server/file_cache.rb in bolt-2.33.2 vs lib/bolt_server/file_cache.rb in bolt-2.34.0

- old
+ new

@@ -61,10 +61,11 @@ def ssl_key @ssl_key ||= File.read(@config['ssl-key']) end def client + # rubocop:disable Naming/VariableNumber @client ||= begin uri = URI(@config['file-server-uri']) https = Net::HTTP.new(uri.host, uri.port) https.use_ssl = true https.ssl_version = :TLSv1_2 @@ -73,9 +74,10 @@ https.key = OpenSSL::PKey::RSA.new(ssl_key) https.verify_mode = OpenSSL::SSL::VERIFY_PEER https.open_timeout = @config['file-server-conn-timeout'] https end + # rubocop:enable Naming/VariableNumber end def request_file(path, params, file) uri = "#{@config['file-server-uri'].chomp('/')}#{path}" uri = URI(uri)