Method: URI::Generic#normalize!
- Defined in:
- lib/extensions/uri/uri/generic.rb
#normalize! ⇒ Object
Destructive version of #normalize
989 990 991 992 993 994 995 996 997 998 999 |
# File 'lib/extensions/uri/uri/generic.rb', line 989 def normalize! if path && path == '' 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 |