lib/benchmark/http/command/spider.rb in benchmark-http-0.8.1 vs lib/benchmark/http/command/spider.rb in benchmark-http-0.8.2
- old
+ new
@@ -68,9 +68,11 @@
if filter.base
base = base + filter.base
end
filter.links.collect do |href|
+ next if href.nil? or href.empty?
+
begin
full_url = base + href
if full_url.host == url.host && full_url.kind_of?(URI::HTTP)
yield full_url