diff options
author | Matthias Hecker <mail@apoc.cc> | 2020-04-14 19:10:30 +0200 |
---|---|---|
committer | Matthias Hecker <mail@apoc.cc> | 2020-04-14 19:10:30 +0200 |
commit | 43947e5a04857950610b0d35c75086de4229b3d6 (patch) | |
tree | 6201e219133d3f392bf5030378f28e91d63a0d9e /lib/rbot | |
parent | acc946be5b8d9042fb2a9263ba11d5ded2a509bb (diff) |
remove obsolete require of net/https
Diffstat (limited to 'lib/rbot')
-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!" |