http_response

in lib/cc/cli/version_checker.rb [62:77]


      def http_response
        @http_response ||=
          begin
            uri = URI.parse(ENV.fetch("CODECLIMATE_VERSIONS_URL", DEFAULT_VERSIONS_URL))
            uri.query = { version: version, uid: global_config.uuid }.to_query

            http = Net::HTTP.new(uri.host, uri.port)
            http.open_timeout = 5
            http.read_timeout = 5
            http.ssl_timeout = 5
            http.use_ssl = uri.scheme == "https"

            http.get(uri, "User-Agent" => user_agent)
          end
      end