Skip to content

Commit

Permalink
[ruby/net-http] Do not require stringio
Browse files Browse the repository at this point in the history
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.

ruby/net-http@996d18a43f
  • Loading branch information
rhenium authored and hsbt committed May 6, 2021
1 parent 965719f commit 364044e
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 2 deletions.
1 change: 0 additions & 1 deletion lib/net/http.rb
Original file line number Diff line number Diff line change
Expand Up @@ -393,7 +393,6 @@ class HTTP < Protocol
HTTPVersion = '1.1'
begin
require 'zlib'
require 'stringio' #for our purposes (unpacking gzip) lump these together
HAVE_ZLIB=true
rescue LoadError
HAVE_ZLIB=false
Expand Down
1 change: 0 additions & 1 deletion test/net/http/test_http_request.rb
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
# frozen_string_literal: false
require 'net/http'
require 'test/unit'
require 'stringio'

class HTTPRequestTest < Test::Unit::TestCase

Expand Down

0 comments on commit 364044e

Please sign in to comment.