End of Life Ruby 3.2 has reached end of life and gets no more fixes. Switch to Ruby 4.0 →
instance method
URI::Generic#normalize!
normalize!
lib/uri/generic.rb
View on GitHub ↗
# File tmp/rubies/ruby-3.2.0/lib/uri/generic.rb, line 1328
def normalize!
if path&.empty?
set_path('/')
end
if scheme && scheme != scheme.downcase
set_scheme(self.scheme.downcase)
end
if host && host != host.downcase
set_host(self.host.downcase)
end
end
Destructive version of normalize.