1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

[ruby/net-http] Do not require stringio

It is not used in net/http library code since commit 15ccd0118c13
(r36473 in ruby svn trunk, 2012).

require's in test suite are also cleaned up.

https://github.com/ruby/net-http/commit/996d18a43f
This commit is contained in:
Kazuki Yamaguchi 2021-04-29 21:35:57 +09:00 committed by Hiroshi SHIBATA
parent 965719f5eb
commit 364044e090
2 changed files with 0 additions and 2 deletions

View file

@ -393,7 +393,6 @@ module Net #:nodoc:
HTTPVersion = '1.1'
begin
require 'zlib'
require 'stringio' #for our purposes (unpacking gzip) lump these together
HAVE_ZLIB=true
rescue LoadError
HAVE_ZLIB=false

View file

@ -1,7 +1,6 @@
# frozen_string_literal: false
require 'net/http'
require 'test/unit'
require 'stringio'
class HTTPRequestTest < Test::Unit::TestCase