Skip to content

Commit 281a13e

Browse files
committed
Need to restore under the Net namespace
1 parent 9949c06 commit 281a13e

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

lib/net/http.rb

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,12 @@ module Net #:nodoc:
3030
# :stopdoc:
3131
class HTTPBadResponse < StandardError; end
3232
class HTTPHeaderSyntaxError < StandardError; end
33+
34+
# for backward compatibility until Ruby 3.5
35+
# https://bugs.ruby-lang.org/issues/20900
36+
# https://github.com/bblimke/webmock/pull/1081
37+
HTTPSession = HTTP
38+
deprecate_constant :HTTPSession
3339
# :startdoc:
3440

3541
# \Class \Net::HTTP provides a rich library that implements the client
@@ -738,12 +744,6 @@ class HTTP < Protocol
738744
rescue LoadError
739745
HAVE_ZLIB=false
740746
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
747747
# :startdoc:
748748

749749
# Returns +true+; retained for compatibility.

0 commit comments

Comments
 (0)