lib/spidr/page.rb in spidr-0.2.5 vs lib/spidr/page.rb in spidr-0.2.6

- old
+ new

@@ -532,11 +532,11 @@ def meta_redirect redirects = [] if (html? && doc) search('//meta[@http-equiv and @content]').each do |node| - if node.attr('http-equiv') =~ /refresh/i - content = node.attr('content') + if node.get_attribute('http-equiv') =~ /refresh/i + content = node.get_attribute('content') if (redirect = content.match(/url=(\S+)$/)) redirects << redirect[1] end end