lib/scanner/generic.rb in yawast-0.2.0.beta1 vs lib/scanner/generic.rb in yawast-0.2.0.beta2

- old
+ new

@@ -226,10 +226,10 @@ req.use_ssl = uri.scheme == 'https' req.keep_alive_timeout = 600 headers = Yawast::Shared::Http.get_headers req.start do |http| - File.open("lib/resources/common.txt", "r") do |f| + File.open(File.dirname(__FILE__) + '/../resources/common.txt', "r") do |f| f.each_line do |line| check = uri.copy check.path = check.path + "#{line.strip}/" res = http.head(check, headers)