diff options
-rw-r--r-- | lib/rbot/core/utils/httputil.rb | 17 |
1 files changed, 0 insertions, 17 deletions
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 @@ -13,23 +13,6 @@ 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 error "No nokogiri library found, some features might not be available!" |