End of Life Ruby 3.1 has reached end of life and gets no more fixes. Switch to Ruby 4.0 →
instance method
Net::HTTPResponse#body_encoding=
body_encoding=(value)
lib/net/http/response.rb
View on GitHub ↗
# File tmp/rubies/ruby-3.1.3/lib/net/http/response.rb, line 118
def body_encoding=(value)
value = Encoding.find(value) if value.is_a?(String)
@body_encoding = value
end