Skip to content

Commit

Permalink
Merge pull request #191 from ruby/restore-http-session
Browse files Browse the repository at this point in the history
Restore HTTPSession constant for backward compatibility
  • Loading branch information
hsbt authored Nov 19, 2024
2 parents 3a83e46 + 37f17d2 commit 9949c06
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions lib/net/http.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit 9949c06

Please sign in to comment.