lib/postrank-uri.rb in postrank-uri-1.0.7 vs lib/postrank-uri.rb in postrank-uri-1.0.8
- old
+ new
@@ -123,9 +123,10 @@
end
def normalize(uri)
u = parse(uri)
u.path = u.path.squeeze('/')
+ u.path = u.path.chomp('/') if u.path.size != 1
u.query = nil if u.query && u.query.empty?
u.fragment = nil
u
end
\ No newline at end of file