diff --git a/lib/logstash/kibana.rb b/lib/logstash/kibana.rb index dc7cebf66..e79eafaa6 100644 --- a/lib/logstash/kibana.rb +++ b/lib/logstash/kibana.rb @@ -42,7 +42,7 @@ module LogStash::Kibana if File.exists?(path) ext = path.split(".").last content_type MIME::Types.type_for(ext).first.to_s - body File.new(path, "r").read + body File.new(path, "rb").read else status 404 content_type "text/plain"