From 43947e5a04857950610b0d35c75086de4229b3d6 Mon Sep 17 00:00:00 2001 From: Matthias Hecker Date: Tue, 14 Apr 2020 19:10:30 +0200 Subject: remove obsolete require of net/https --- lib/rbot/core/utils/httputil.rb | 17 ----------------- 1 file changed, 17 deletions(-) (limited to 'lib') diff --git a/lib/rbot/core/utils/httputil.rb b/lib/rbot/core/utils/httputil.rb index e629becb..da2f3fe1 100644 --- a/lib/rbot/core/utils/httputil.rb +++ b/lib/rbot/core/utils/httputil.rb @@ -12,23 +12,6 @@ require 'resolv' require 'net/http' require 'cgi' -begin - require 'net/https' -rescue LoadError => e - error "Couldn't load 'net/https': #{e}" - error "Secured HTTP connections will fail" - # give a nicer error than "undefined method `use_ssl='" - ::Net::HTTP.class_eval <<-EOC - define_method :use_ssl= do |val| - # does anybody really set it to false? - break if !val - raise _("I can't do secure HTTP, sorry (%{msg})") % { - :msg => e.message - } - end - EOC -end - begin require 'nokogiri' rescue LoadError => e -- cgit v1.2.3