diff --git a/lib/net/http.rb b/lib/net/http.rb index e6d1bb0..e97628e 100644 --- a/lib/net/http.rb +++ b/lib/net/http.rb @@ -738,6 +738,12 @@ 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.