class PhusionPassenger::Config::DownloadAgentCommand

def real_download_support_file(site, name, output)

def real_download_support_file(site, name, output)
  url = "#{site[:url]}/#{VERSION_STRING}/#{name}"
  options = {
    :cacert => site[:cacert],
    :logger => @logger,
    :use_cache => @options[:use_cache]
  }
  # connect_timeout and idle_timeout may be nil or 0, which means
  # that the default Utils::Download timeouts should be used.
  if @options[:connect_timeout] && @options[:connect_timeout] != 0
    options[:connect_timeout] = @options[:connect_timeout]
  end
  if @options[:idle_timeout] && @options[:idle_timeout] != 0
    options[:idle_timeout] = @options[:idle_timeout]
  end
  return PhusionPassenger::Utils::Download.download(url, output, options)
end