File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff 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.
You can’t perform that action at this time.
0 commit comments