Skip to content

Commit 4650f86

Browse files
committed
Need to restore under the Net namespace
1 parent 9949c06 commit 4650f86

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

lib/net/http.rb

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -738,12 +738,6 @@ class HTTP < Protocol
738738
rescue LoadError
739739
HAVE_ZLIB=false
740740
end
741-
742-
# for backward compatibility until Ruby 3.5
743-
# https://bugs.ruby-lang.org/issues/20900
744-
# https://github.com/bblimke/webmock/pull/1081
745-
HTTPSession = HTTP
746-
deprecate_constant :HTTPSession
747741
# :startdoc:
748742

749743
# Returns +true+; retained for compatibility.
@@ -2565,6 +2559,11 @@ def debug(msg)
25652559
alias_method :D, :debug
25662560
end
25672561

2562+
# for backward compatibility until Ruby 3.5
2563+
# https://bugs.ruby-lang.org/issues/20900
2564+
# https://github.com/bblimke/webmock/pull/1081
2565+
HTTPSession = HTTP
2566+
deprecate_constant :HTTPSession
25682567
end
25692568

25702569
require_relative 'http/exceptions'

0 commit comments

Comments
 (0)