lib/html2rss/utils.rb in html2rss-0.4.0 vs lib/html2rss/utils.rb in html2rss-0.4.1

- old
+ new

@@ -12,14 +12,13 @@ def self.build_absolute_url_from_relative(url, channel_url) url = URI(url) if url.is_a?(String) return url if url.absolute? - path, query = url.to_s.split('?') - URI(channel_url).tap do |uri| - uri.path = path.to_s.start_with?('/') ? path : "/#{path}" - uri.query = query + uri.path = url.path.to_s.start_with?('/') ? url.path : "/#{url.path}" + uri.query = url.query + uri.fragment = url.fragment if url.fragment end end end end