Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions lib/uri/ftp.rb
Original file line number Diff line number Diff line change
Expand Up @@ -220,6 +220,16 @@ def merge(oth) # :nodoc:
return tmp
end

def merge!(oth) # :nodoc:
tmp = merge(oth)
return if self == tmp && query == tmp.query && fragment == tmp.fragment

replace!(tmp)
self.query = tmp.query
self.fragment = tmp.fragment
self
end

# Returns the path from an FTP URI.
#
# RFC 1738 specifically states that the path for an FTP URI does not
Expand Down