Skip to content

Commit

Permalink
Merge pull request #192 from ruby/fixup-GH-191
Browse files Browse the repository at this point in the history
Need to restore under the Net namespace
  • Loading branch information
hsbt authored Nov 19, 2024
2 parents 9949c06 + 4650f86 commit d18ab3d
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions lib/net/http.rb
Original file line number Diff line number Diff line change
Expand Up @@ -738,12 +738,6 @@ class HTTP < Protocol
rescue LoadError
HAVE_ZLIB=false
end

# for backward compatibility until Ruby 3.5
# https://bugs.ruby-lang.org/issues/20900
# https://github.com/bblimke/webmock/pull/1081
HTTPSession = HTTP
deprecate_constant :HTTPSession
# :startdoc:

# Returns +true+; retained for compatibility.
Expand Down Expand Up @@ -2565,6 +2559,11 @@ def debug(msg)
alias_method :D, :debug
end

# for backward compatibility until Ruby 3.5
# https://bugs.ruby-lang.org/issues/20900
# https://github.com/bblimke/webmock/pull/1081
HTTPSession = HTTP
deprecate_constant :HTTPSession
end

require_relative 'http/exceptions'
Expand Down

0 comments on commit d18ab3d

Please sign in to comment.