Skip to content

Commit

Permalink
Need to restore under the Net namespace
Browse files Browse the repository at this point in the history
  • Loading branch information
hsbt committed Nov 19, 2024
1 parent 9949c06 commit 281a13e
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions lib/net/http.rb
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,12 @@ module Net #:nodoc:
# :stopdoc:
class HTTPBadResponse < StandardError; end
class HTTPHeaderSyntaxError < StandardError; 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:

# \Class \Net::HTTP provides a rich library that implements the client
Expand Down Expand Up @@ -738,12 +744,6 @@ 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.
Expand Down

0 comments on commit 281a13e

Please sign in to comment.