Project

General

Profile

Bug #15933 ยป ruby-changes.patch

gareth (Gareth Adams), 06/17/2019 07:01 PM

View differences:

lib/open-uri.rb
552 552
      elsif block_given?
553 553
        yield
554 554
      elsif type && %r{\Atext/} =~ type &&
555
            @base_uri && /\Ahttp\z/i =~ @base_uri.scheme
555
            @base_uri && /\Ahttps?\z/i =~ @base_uri.scheme
556 556
        "iso-8859-1" # RFC2616 3.7.1
557 557
      else
558 558
        nil