diff options
Diffstat (limited to 'lib/uri')
-rw-r--r-- | lib/uri/generic.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/uri/generic.rb b/lib/uri/generic.rb index 1486a4cb25..224a16317b 100644 --- a/lib/uri/generic.rb +++ b/lib/uri/generic.rb @@ -1326,7 +1326,7 @@ module URI # Destructive version of #normalize # def normalize! - if path && path.empty? + if path&.empty? set_path('/') end if scheme && scheme != scheme.downcase |