[ruby/net-http] Restore HTTPSession constant for backward compatibility
https://github.com/ruby/net-http/commit/37f17d29e0
This commit is contained in:
parent
eb2b0c2a0d
commit
b23c5063e8
@ -738,6 +738,12 @@ 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.
|
||||
|
Loading…
x
Reference in New Issue
Block a user