X-Git-Url: https://git.netwichtig.de/gitweb/?a=blobdiff_plain;f=lib%2Frbot%2Fcore%2Futils%2Fhttputil.rb;h=fb275547169efefce78632b9eb62d3efc0daf39c;hb=391c2ce19c0954d3ea0f7b6cc17c001d26491ca6;hp=e629becb40b8e3e83e7e28bfc0c7aa3b600aa356;hpb=63314f4987d7acc8a39a3680320e339cc94da66b;p=user%2Fhenk%2Fcode%2Fruby%2Frbot.git diff --git a/lib/rbot/core/utils/httputil.rb b/lib/rbot/core/utils/httputil.rb index e629becb..fb275547 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 @@ -181,8 +164,6 @@ module ::Net end end -Net::HTTP.version_1_2 - module ::Irc module Utils