lib/iri.rb in iri-0.4.2 vs lib/iri.rb in iri-0.4.3

- old
+ new

@@ -166,10 +166,11 @@ # Iri.new('https://google.com/a/b?q=test').append('/hello') # # The result will contain "https://google.com/a/b/hello?q=test". def append(part) modify do |c| - c.path = c.path + '/' + CGI.escape(part.to_s) + tail = (c.path.end_with?('/') ? '' : '/') + CGI.escape(part.to_s) + c.path = c.path + tail end end private