summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib/net/http.rb11
1 files changed, 5 insertions, 6 deletions
diff --git a/lib/net/http.rb b/lib/net/http.rb
index 0029edd142..6eae1034d1 100644
--- a/lib/net/http.rb
+++ b/lib/net/http.rb
@@ -738,12 +738,6 @@ module Net #:nodoc:
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.
@@ -2565,6 +2559,11 @@ module Net #:nodoc:
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'