lib/bastard.rb in bastard-0.0.3 vs lib/bastard.rb in bastard-0.0.4

- old
+ new

@@ -28,10 +28,10 @@ log_files.each do |base| file = File.join(Bastard::LogRoot, base.split('/').first, sanitize_file_location(params['path'])) STDERR.puts "Checking file: #{file}\n" if File.exists?(file) STDERR.puts "Transmitting file: #{file}\n" - return respond_with(200, file, :content_type => "text/plain") + return respond_with(200, File.read(file), :content_type => "text/plain") end end return respond_with(404, "<h1>Not Found</h1>") end